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

Rework SkewT tranform #1125

Merged
merged 2 commits into from Aug 19, 2019
Merged

Rework SkewT tranform #1125

merged 2 commits into from Aug 19, 2019

Conversation

dopplershift
Copy link
Member

@dopplershift dopplershift commented Aug 16, 2019

Description Of Changes

This changes to apply the skewing last, which fixes some issues caused by working in normalized axes coordinates, like problems when the aspect ratio of the plot wasn't square. This likely paves the way for better handling of data aspect ratio for skewT now too. The key here is to use matplotlib's transform framework to listen for changes to the axes bbox, so that the transform can update to use the proper origin for the skewing.

Checklist

@dopplershift dopplershift added Area: Plots Pertains to producing plots Type: Bug Something is not working like it should labels Aug 16, 2019
@dopplershift dopplershift added this to the 0.11 milestone Aug 16, 2019
@zbruick
Copy link
Contributor

zbruick commented Aug 16, 2019

FWIW I like this PR template seeing it in practice now.

zbruick
zbruick previously approved these changes Aug 16, 2019
Copy link
Contributor

@zbruick zbruick left a comment

Choose a reason for hiding this comment

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

I'll let you deal with the Codacy issues as you see fit. The Travis 2.7 test failures should be fun as well...but this looks good to me overall.

zbruick
zbruick previously approved these changes Aug 16, 2019
Copy link
Contributor

@zbruick zbruick left a comment

Choose a reason for hiding this comment

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

Pending CI

This changes to apply the skewing last, which fixes some issues caused
by working in normalized axes coordinates, like problems when the aspect
ratio of the plot wasn't square. This likely paves the way for better
handling of data aspect ratio for skewT now too. The key here is to use
matplotlib's transform framework to listen for changes to the axes bbox,
so that the transform can update to use the proper origin for the
skewing.
@dopplershift
Copy link
Member Author

Codacy is out to lunch. I think this is ready provided everything passes on this rebase.

@zbruick zbruick merged commit ffecdd8 into Unidata:master Aug 19, 2019
@dopplershift dopplershift deleted the fixup-skewt branch August 19, 2019 17:13
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: Bug Something is not working like it should
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Skew-T special lines incorrect for small bounds
2 participants