Hi! This question is probably for @Ryan May or anyone in the metPy team. I am using metPy to plot Skew-Ts from MPAS data. So far so good. The only issue I have is that the x axis goes off to some odd values. See figures attached. Does this look familiar? I've played with skew.ax.set_xlim and skew.ax.set_ylim to no avail. Any tips on how to fix this? Screen-Shot-2022-05-24-at-2.28.22-PM.png
what version of MetPy and Matplotlib are you using? That looks reminiscent of an older bug.
I'm using matplotlib v3.1.0 and metpy 0.10.0.
Dang. My metpy is old...
Any chance you can update MetPy to something in the 1.0 to 1.1 range? (MetPy >=1.2 needs Matplotlib 3.3)
I'm trying to update with conda, but it only gets me as far as 0.11.1.
What version of Python are you using?
That was my next guess. I have version 3.7.3. Do you think I should update to 3.8?
If you're updating Python, I'd go to the most recent you can (3.10 has been out since October). Having said that, MetPy <=1.2 supports Python 3.7. You could try to force it with conda install metpy=1.1
. My guess is something in the environment is blocking it, but not sure what.
Thank you! I'll look into updating my python (it's about time). At least I'm happy to report that the bug is gone with v0.11. test.jpg
:tada:
Last updated: May 16 2025 at 17:14 UTC