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

Update contour extents #1712

Merged
merged 3 commits into from
Jan 18, 2021
Merged

Update contour extents #1712

merged 3 commits into from
Jan 18, 2021

Conversation

greglucas
Copy link
Contributor

@greglucas greglucas commented Jan 16, 2021

Fixes #1673

Rationale

The extent of the projection wasn't getting updated, which caused other failures downstream. This just copies the logic from contourf into contour to update the bounds.

2nd commit updates the global contour wrap image. This previously had incorrect extents of (-176, 176), which this update illuminated and caused the extents to go out to the full range now (-180, 180). I didn't want to mess with MPL2 test images, so just manually fixed the extent for that case.

3rd commit is just extra flake8 updates that I didn't want to do in a separate PR. Can remove if desired.

@greglucas greglucas force-pushed the contour_bounds branch 2 times, most recently from 3dfddad to d69a34c Compare January 17, 2021 18:07
This brings the bounds logic from contourf into contour
to properly update the extents of the plot.
The contour image had bounds of (-176, 176) rather than going
out to the full extent. Now that we are properly calculating the
bounds within contour, the image has changed.
@QuLogic QuLogic merged commit 57791d4 into SciTools:master Jan 18, 2021
@QuLogic QuLogic added this to the 0.19 milestone Jan 18, 2021
@greglucas greglucas deleted the contour_bounds branch January 18, 2021 22:04
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Cannot make contour plot together with coastlines
2 participants