-
-
Notifications
You must be signed in to change notification settings - Fork 1.1k
colorbars in facet grids #1717
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Comments
I don't think we have anything like this in the development version yet. I wonder if it would be better to stop plotting colorbars automatically, and instead require explicitly calling |
What are the arguments against |
Indeed, for consistency it would make sense to add |
For all 2D plots or just for facetgrids? In general I like the all-in-one feeling of xarray plots currently, and I imagine that the automatic colorbar is used very often. |
I was thinking for everything. But I'm OK deferring to your judgment on
this one :)
…On Mon, Nov 20, 2017 at 9:26 AM Fabien Maussion ***@***.***> wrote:
it might be cleaner to avoid making a color-bar automatically in the same
call to .plot()
For all 2D plots or just for facetgrids? In general I like the all-in-one
feeling of xarray plots currently, and I imagine that the automatic
colorbar is used very often.
—
You are receiving this because you commented.
Reply to this email directly, view it on GitHub
<#1717 (comment)>, or mute
the thread
<https://github.com/notifications/unsubscribe-auth/ABKS1o4i7stbLAdiYoeUgpe2QqEETQR5ks5s4bZXgaJpZM4QfQmj>
.
|
Great, will prepare a PR! I second @fmaussion on keeping the auto colorbar, just makes life easy! |
Hello,
In the 0.9.6 version, it does not appear to be possible to pass any arguments to the colorbar plotting
routine.
xarray/xarray/plot/facetgrid.py
Line 239 in 8267fdb
explicitly sets set_colorbar = False, which makes sense.
However, if we want horizontal colorbars, or any way of adjusting the colorbar plotted (it is huge and unwieldy), it would be good if the plotting routine checks for and passes suitable arguments to
xarray/xarray/plot/facetgrid.py
Line 256 in 8267fdb
I tried hacking something together, I can do something like the following now:
which produces:
Is something like this available in the development version? If not, and it seems like a useful feature, I can create a PR.
Joy
The text was updated successfully, but these errors were encountered: