Teng Yang wrote:
> Hello, I have a quick question for you. 
>
> I was trying to make a color and contour plot. But the problem is that
> the matplot defaults the colors from the dark to light for the contour
> values from minimum to maximum, is there any way or commands to reverse
> this order? I mean the dark color for maximum value and light color for
> minimum. 
>
> Thank you so much! 
>
> ///Teng 
>   

Teng:  Simply append '_r' to the colormap name to get the colors 
reversed (e.g. cmap = pylab.cm.hot_r instead of pylab.cm.hot).

-Jeff

-- 
Jeffrey S. Whitaker         Phone  : (303)497-6313
Meteorologist               FAX    : (303)497-6449
NOAA/OAR/PSD  R/PSD1        Email  : [EMAIL PROTECTED]
325 Broadway                Office : Skaggs Research Cntr 1D-124
Boulder, CO, USA 80303-3328 Web    : http://tinyurl.com/5telg


-------------------------------------------------------------------------
This SF.net email is sponsored by DB2 Express
Download DB2 Express C - the FREE version of DB2 express and take
control of your XML. No limits. Just data. Click to get it now.
http://sourceforge.net/powerbar/db2/
_______________________________________________
Matplotlib-users mailing list
Matplotlib-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/matplotlib-users

Reply via email to