Height Scale for SkewT
Description Of Changes
Added new argument to metpy.plot.SkewT function for an optional secondary y-axis of height calculated from metpy.calc.pressure_to_height_std(). Defaults to 'False'; axis can be accessed as a matplotlib axis using 'heightax'.
Checklist
- [x] Closes #262
- [x] Tests added
- [x] Fully documented
Thank you for your submission! We really appreciate it. Like many open source projects, we ask that you all sign our Contributor License Agreement before we can accept your contribution.
1 out of 2 committers have signed the CLA.
:white_check_mark: blue-jaye-121
:x: Jaye Norman
Jaye Norman seems not to be a GitHub user. You need a GitHub account to be able to sign the CLA. If you have already a GitHub account, please add the email address used for this commit to your account.
You have signed the CLA already but the status is still pending? Let us recheck it.
I reverted the skewT file to the best functioning version that I had. This works beautifully - unless you add a ylim that is greater than 1013.25 hPa. Then because the secondary axis uses the same log scale as a primary axis, it doesn't work and won't reset the limits. Here's a couple examples:
- Works great with set_ylim(1000, 100)
- Works great with set_ylim(1000, 400)
- Does not work with set_ylim(2000, 100) - it keeps the limits the same as the default