Skip to content

Conversation

@kgoebber
Copy link
Collaborator

@kgoebber kgoebber commented Feb 17, 2020

Description Of Changes

This PR fixes #1322 and re-orders the draw procedure in the declarative syntax. It puts setting the extent before drawing the contours/colorfills/etc. in oder to allow sane contour labelling to happen. Additionally, it modifies the default inline spacing of the contour labels from 2 to 10 as a result of the sane behavior. Finally, three test images were updated as with the behavior change came a change in the output from those tests.

See issue #1322 for a more complete description of the problem that this PR is fixing.

Checklist

@dopplershift dopplershift added Area: Plots Pertains to producing plots Type: Maintenance Updates and clean ups (but not wrong) labels Feb 18, 2020
@dopplershift dopplershift added this to the 1.0 milestone Feb 18, 2020
Copy link
Member

@dopplershift dopplershift left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Changes seem fine, though I'm calling them a work-around rather than a fix. Need to look at the clabel thing and decide if it's matplotlib or CartoPy.

Also, while I'd say the new image for test_latlon is an improvement, I'm deeply disturbed that changing when we set the extent even introduces that change, so that's another upstream issue.

@kgoebber
Copy link
Collaborator Author

I can appreciate calling this a work around. From my explorations I'm thinking more likely Cartopy than Matplotlib, but not totally convinced. This seems similar to issues that I had at one point with plotting skewTs and if you set the limits in a certain way it would affect the final output. Blanking on the exact details of the skewT issue at this point, but I do remember having issues with when the xlim and slim were set in prior lifetimes.

@dopplershift dopplershift merged commit 235b248 into Unidata:master Feb 18, 2020
@dopplershift dopplershift modified the milestones: 1.0, 0.12.1 Apr 17, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Area: Plots Pertains to producing plots Type: Maintenance Updates and clean ups (but not wrong)

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Contour Labels and Declarative Plotting

2 participants