-
Notifications
You must be signed in to change notification settings - Fork 3
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
Add plot() function #13
Comments
I think I want to look more into how |
Another design question: do we want to accept |
@andersy005 or @mgrover1 -- I'm not totally sure where to start with this one, and maybe I'm overthinking it... but I'm getting caught up in how overloaded
xr.DataArray.plot()
is, so I don't really know what the desired output of this function is. Suppose we haveHow would you call
collection.plot()
and what would you expect the plot to look like? I was initially picturing something likebut
collection['rasm']['Tair'].plot();
is a histogram and you needcollection['rasm']['Tair'].isel(time=___).plot();
to get a contour plot. So maybeand we could call
but then what happens if multiple datasets in the collection contain
var
? Should we allow collections to containmatplotlib.figure.Figure
objects? Thencollection.plot()
could return a collection of figures?That seems like useful behavior for contour plots, but what about line plots? If I want to look at a time series or vertical profile at a given location (or maybe of a global mean), then should there be an option to return a single figure containing lines from all acceptable datasets? E.g. if I have a collection of 10 datasets, and five of them contain the variable
Tair
, then maybe I want to plot all five together with a legend containing the key for each dataset?The text was updated successfully, but these errors were encountered: