-
Notifications
You must be signed in to change notification settings - Fork 422
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
Conversation
There was a problem hiding this 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...)
45148dd
to
71ac4e0
Compare
There was a problem hiding this 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?
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. |
There was a problem hiding this 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?
examples/plots/Skew-T_Layout.py
Outdated
|
||
# 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) |
There was a problem hiding this comment.
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?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
There was a problem hiding this comment.
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.
At some point this needs a rebase. |
b32a030
to
561fc25
Compare
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. |
Codecov Report
@@ 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
Continue to review full report at Codecov.
|
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.