MetPy icon indicating copy to clipboard operation
MetPy copied to clipboard

Height Scale for SkewT

Open blue-jaye-121 opened this issue 8 months ago • 2 comments

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

blue-jaye-121 avatar Jun 20 '25 19:06 blue-jaye-121

CLA assistant check
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.

CLAassistant avatar Jun 20 '25 19:06 CLAassistant

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:

  1. Works great with set_ylim(1000, 100) image
  2. Works great with set_ylim(1000, 400) image
  3. Does not work with set_ylim(2000, 100) - it keeps the limits the same as the default image

blue-jaye-121 avatar Jul 30 '25 16:07 blue-jaye-121