-
-
Notifications
You must be signed in to change notification settings - Fork 1.1k
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
dont infer interval breaks in pcolormesh when ax is a cartopy axis #782
Conversation
Bare in mind that some netCDF4 files do have the bounds data and those should be used as "breaks" when available. BTW I'd rather not have the |
Me too, but I don't mind doing it when we're not projecting the data. |
What if there are bounds in the file and the data is regularly spaced? I consider the current behavior a guess, and guessing should be an active user choice, not the automatic behavior. |
add simple test and whats new entry
Short of adding cartopy to our continuous integration setup, does anyone have any ideas on how to test this change more robustly than I have shown here? I want to avoid testing the behavior of the either |
any more comments here? |
This PR looks good to me. Regarding the larger issue of not inferring bounds, I guess I would be on board with that change, too. The original idea was to make pcolormesh and imshow consistent (other than the underlying plotting engine) and to always plot that last row/column of data, but maybe it's better to force users to be explicit. At the very least, it is clearly a bad idea to adjust bounds if they are not equally spaced (but I agree that guessing is bad default behavior). |
So do we want to remove |
Works for me On Fri, Mar 11, 2016 at 10:40 AM, Joe Hamman [email protected]
|
dont infer interval breaks in pcolormesh when ax is a cartopy axis
This PR chooses not to infer interval breaks in pcolormesh if the axis is a Cartopy axis. Below is an example of a plot using the new behavior - compare to #781 (comment).
I'll come up with a few tests here.
closes #781.