gap between colorbar and panel

Hi, I wonder if there is a simple way to adjust the gap between panel and colorbar? I saw a way here https://yt-project.org/doc/cookbook/complex_plots.html#multi-plot-slice-and-... <https://yt-project.org/doc/cookbook/complex_plots.html#multi-plot-slice-and-...> which uses .to_frb and then use .imshow to do it, but I guess there should be an easier way? I just want to make some white space between the panel and the colorbar, rather than adjacent to each other as default. Thanks, Huanqing

Hi Hanquing, I *think* you can modify it by changing the "caxrect" argument to the base class ImagePlotMPL, but I'm genuinely not sure how to make that happen without overriding _get_best_layout. So I think right now it's layered too deeply to do much with, without yanking it out to imshow. On Mon, Jan 27, 2020 at 9:08 PM Huanqing <hqchen@oddjob.uchicago.edu> wrote:
Hi,
I wonder if there is a simple way to adjust the gap between panel and colorbar? I saw a way here https://yt-project.org/doc/cookbook/complex_plots.html#multi-plot-slice-and-... which uses .to_frb and then use .imshow to do it, but I guess there should be an easier way? I just want to make some white space between the panel and the colorbar, rather than adjacent to each other as default.
Thanks, Huanqing _______________________________________________ yt-users mailing list -- yt-users@python.org To unsubscribe send an email to yt-users-leave@python.org
participants (2)
-
Huanqing
-
Matthew Turk