-
-
Notifications
You must be signed in to change notification settings - Fork 1.2k
Don't squeeze DataArray before plotting #620
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 see two options:
1 might actually be preferable to not squeezing at all. |
In order to maintain a list of currently relevant issues, we mark issues as stale after a period of inactivity |
I already mentioned this issue in a couple others but, as an FYI, I ran into this trying to write a plotting function that accepts a dataarray and **kwargs. It's a bit annoying to have to deal with the dataarray differently depending on whether the facetting variable has length == 1 or >1. |
I would support a breaking change to Xarray's plotting methods here to remove squeezing. These sort of inconsistencies are really indeed annoying to program around! |
Reviving this ancient issue here. |
As was discussed in #608, we should honor the shape of the DataArray when selecting plot methods. Currently, we're squeezing the DataArray before plotting. This ends up plotting a line plot for a DataArray with shape
(N, 1)
. We should find a way to plot a pcolormesh or imshow plot in this case. The trick will be figuring out what to do in_infer_interval_breaks
.The text was updated successfully, but these errors were encountered: