Skip to content

Visualizing only a section of the atmosphere on a SkewT #2847

Answered by dopplershift
DannySunvold asked this question in Q&A
Discussion options

You must be logged in to vote

The challenge here is that skewT gets challenging with changing plot shapes. SkewT in MetPy by default sets a fixed aspect of 80.5 which locks in the ratio of horizontal and vertical plot ranges and keeps things looking "like a skew-T". The knobs you have available:

  1. Manually specify your x limits--for the plot above things look better if you do skew.ax.set_xlim(10, 25).
  2. By default, MetPy tells Matplotlib to adjust the box to keep right aspect based on the data limits. You could change this with skew.ax.set_adjustable('datalim').
  3. Override MetPy's fixed aspect ratio with skew.ax.set_aspect(new_aspect_value)--our default is 80.5. I don't recommend this, though, because it can lead to weird …

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@DannySunvold
Comment options

Answer selected by dopplershift
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants