Ryan May wrote:
> (Sorry if this is a duplicate)
>
> Hi,
>
> I'm trying to make a Skew-T LogP plot, an important plot in meteorology, 
> using matplotlib (mainly to help convert people away from much more 
> horrible solutions).  You can see one here: 
> http://www.rap.ucar.edu/weather/upper/oun.gif
>
> and more cartoonish:
> http://www.srh.noaa.gov/oun/images/figure6.gif
>
>
> (Pay attention only to the lower part with the bold red and green 
> lines).  I'm pretty sure matplotlib can't currently do this, but it 
> shouldn't be too hard.  The crux of the plot is that you plot 
> temperature as a function of pressure, with pressure reversed and 
> logarithmically spaced on the Y-axis (ie. high pressure at the bottom) 
> and temperature plotted skewed along the X axis.  That is, the lines of 
> constant temperature intersect the bottom at 45 degree angles.  I know 
> matplotlib can do log axes, so how hard would it be for me to create a 
> transform that can handle the 45 degree skew of the temperature?
>
> Thanks,
>
> Ryan
>
>   
Ryan:  I'm sure you could do it, and it would be a nice contribution to 
the community.  There's some IDL code here

http://cimss.ssec.wisc.edu/camex3/archive/quicklooks/

you could work from.  There's also NCL code (couldn't find it on the 
web, but the source code comes with NCL).  I'd suggest working from 
those.  I don't think you need transforms (although they might make it 
easier), since neither of those languages has them. 

HTH,

-Jeff

-- 
Jeffrey S. Whitaker         Phone : (303)497-6313
NOAA/OAR/CDC  R/PSD1        FAX   : (303)497-6449
325 Broadway                Boulder, CO, USA 80305-3328


-------------------------------------------------------------------------
Check out the new SourceForge.net Marketplace.
It's the best place to buy or sell services for
just about anything Open Source.
http://sourceforge.net/services/buy/index.php
_______________________________________________
Matplotlib-devel mailing list
Matplotlib-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/matplotlib-devel

Reply via email to