Skip to content
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

FIX: Don't reset datalims in contour, only update/expand #1784

Merged
merged 1 commit into from
Sep 8, 2021

Conversation

greglucas
Copy link
Contributor

Contour(f) previously updated the datalims with ignore=None, which
takes the last value (that must have been True to ignore the current
data limits). We only want to update what was previously there, not
override that box and potentially shrink the limits.

Closes #1780

Contour(f) previously updated the datalims with ignore=None, which
takes the last value that must have been True to ignore the current
data limits. We only want to update what was previously there, not
override that box and potentially shrink the limits.
@rcomer
Copy link
Member

rcomer commented May 10, 2021

Wow, thanks for the speedy fix @greglucas!

Are there likely to be any more patch releases for v0.19, or will this fix now wait for v0.20? The issue is causing test failures in Iris, so I'm just wondering whether we need to put a workaround into Iris's upcoming patch release.

@greglucas
Copy link
Contributor Author

Good question @rcomer, I'm not sure if we will do a minor release or not... My guess is that even if we were to do a minor release it would be a while before that happened, so it is probably better to patch Iris if you can.

@greglucas
Copy link
Contributor Author

I'm going to self-merge based on @rcomer's review and this has tests. It should be included in the next release.

@greglucas greglucas merged commit c7af419 into SciTools:master Sep 8, 2021
@greglucas greglucas deleted the contour-limits branch September 8, 2021 14:37
@rcomer
Copy link
Member

rcomer commented Sep 8, 2021

I don't have merge rights here, but can confirm the change looks good to me 👍

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Axes extent behaviour at Cartopy 0.19
2 participants