[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[python #XAA-269625]: metpy skewt



Greetings!

See inline below:

> 1. Is there some way to change the color of the temperature lines (slanted
> to the right)?

The temperature lines on the MetPy's SkewT correspond to the x-axis gridlines 
for matplotlib. So the way to accomplish what you want is:

    skew.ax.grid(axis='x', color='orange')

For more information, this matplotlib example shows some more that can be done:

  
https://matplotlib.org/stable/gallery/subplots_axes_and_figures/axes_props.html#sphx-glr-gallery-subplots-axes-and-figures-axes-props-py

> 2. The default temps for the moist adiabats that are drawn are 5, 10, 15,
> 20, 25, and 30 degC (multiples of 5).  I'd like them to be 8, 12, 16, 20,
> 24, 28 and 32 degC (multiples of 4).  I'm trying to figure out how to use
> t0 in the plot_moist_adiabats function to make this happen.  I've tried
> this but it doesn't do what I want it to.
> 
> ma_temps = (np.array([8,12,16,20,24,28,32])+273.15)*units.degK
> skew.plot_moist_adiabats(t0=ma_temps,colors='green',alpha=0.3)

When I run the code you shared, I get green moist adiabats that start (at the 
1000mb level) at 8, 12, 16, 20, 24, 28, 23 degC. Is that not the result you 
get? If not, what version of MetPy do you have installed? If that is what you 
get, can you better describe what you're wanting?

Cheers!

Ryan


Ticket Details
===================
Ticket ID: XAA-269625
Department: Support Python
Priority: Low
Status: Closed
===================
NOTE: All email exchanges with Unidata User Support are recorded in the Unidata 
inquiry tracking system and then made publicly available through the web.  If 
you do not want to have your interactions made available in this way, you must 
let us know in each email you send to us.