-
-
Notifications
You must be signed in to change notification settings - Fork 1.1k
add geocolormesh #882
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 geocolormesh #882
Conversation
I was trying to avoid getting too much geo-specific functionality in xarray, but this does nicely extend the existing plotting methods, so I think this is a reasonable addition. Anyone else have opinions on this one? |
@shoyer maybe just a name change then? cartopy obviously is inherently geo-specific. Is it possible that other fields would find the utilities in geocolormesh useful? Or could the geocolormesh functionality be refactored into the existing plotting framework? (Just thinking out loud...not familiar with the plotting codebase at all) |
I also agree that this is a not to intrusive and useful "geo-specific" addition. Without looking at the implementation, I also wonder if it would be possible to add the same functionality to the existing framework without adding a specific function? The background is that there are other ways than pcolormesh to plot on a map (see also #657) |
I'm pretty sure it's possible to add cartopy axes to a FacetGrid using the What this code does is add the I agree that this is a good fit for xarray because the plotting API is difficult to extend externally. One nice way to present this to users could be to make a |
Yes is is possible to say I like the idea of doing
Some questions:
|
Do you think it would be enough to expose the |
What may be possible: extend * This may conflict with the current |
Addresses #880 (partially): Automatically create a cartopy GeoAxis for easier plotting of map data. Works for single plots and for FacetGrids. If a normal pyplot axes is passed, defaults to pcolormesh.
Example: