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

Add default limits to the skew-T plot #196

Closed
wants to merge 4 commits into from

Conversation

jrleeman
Copy link
Contributor

Adds default limits to the skew-T plot to address the most common encounter of issue #195. This fix could still be an issue if the user draws the special fiducial lines and then resets the limits. That would require a more dynamic fix or setting the limits before drawing the lines.

@dopplershift dopplershift added Type: Enhancement Enhancement to existing functionality Area: Plots Pertains to producing plots Status: Need Info More information is required to act on the issue labels Jul 31, 2016
@dopplershift dopplershift removed the Status: Need Info More information is required to act on the issue label Sep 14, 2016
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.

Values are good, just need to get tests to pass. (Really just doing this to test out the code review stuff...)

@dopplershift dopplershift modified the milestones: Fall 2016 Release (0.4), Winter 2017 Release (0.5) Oct 14, 2016
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.

Can you also remove the lines setting the limits from the Simple and Advanced Sounding examples? Might as well take advantage to simplify things. Might also be able to update the upper air tutorial?

@jrleeman
Copy link
Contributor Author

jrleeman commented Feb 2, 2017

Removed the limits in the examples. Toying with making the limit setting unit aware and making sure we aren't drawing outside of the bounds.

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.

Are there still some examples that show setting the limits?


# Add the relevant special lines
skew.plot_dry_adiabats()
skew.plot_moist_adiabats()
skew.plot_mixing_lines()

# Good bounds for aspect ratio
skew.ax.set_xlim(-30, 40)
Copy link
Member

Choose a reason for hiding this comment

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

If we remove this, does the plot still look good?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

sphx_glr_skew-t_layout_001

Copy link
Member

Choose a reason for hiding this comment

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

I'm going to say no, no it doesn't. At least not until we figure out the problems with aspect ratio.

@dopplershift
Copy link
Member

At some point this needs a rebase.

@jrleeman
Copy link
Contributor Author

jrleeman commented Feb 3, 2017

In light of discussion, it would be better to draw the fiducial lines properly so that they will re-render when limits are changed, plot is panned, etc. This would just be a bandaid, so I'll close it and we can rethink the problem.

@jrleeman jrleeman closed this Feb 3, 2017
@jrleeman jrleeman deleted the SkewT_Limits branch March 21, 2017 13:31
@codecov
Copy link

codecov bot commented Apr 6, 2017

Codecov Report

Merging #196 into master will decrease coverage by 0.02%.
The diff coverage is 100%.

Impacted file tree graph

@@            Coverage Diff             @@
##           master     #196      +/-   ##
==========================================
- Coverage   97.26%   97.24%   -0.03%     
==========================================
  Files          54       54              
  Lines        4281     4283       +2     
==========================================
+ Hits         4164     4165       +1     
- Misses        117      118       +1
Impacted Files Coverage Δ
metpy/plots/skewt.py 98.94% <100%> (-0.53%) ⬇️

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update 1755365...3eacfde. Read the comment docs.

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: Enhancement Enhancement to existing functionality
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants