Re: Fwd: quick question about color

From: Dennis Shea <shea_at_nyahnyahspammersnyahnyah>
Date: Tue Jan 10 2012 - 18:01:34 MST

You can use gsn_reverse_colormap(wks)

   wks = gsn_open_wks("x11","color") ; open a ps file
   gsn_define_colormap(wks,"gsdtol") ; choose colormap
   gsn_draw_colormap(wks) ; draw colormap

   gsn_reverse_colormap(wks) ; reverse colormap
   gsn_draw_colormap(wks)

On 1/10/12 5:04 PM, mark vogel wrote:
>
> Dear all
> I would like to swith the color. I want the dark color for high values
> in Greyscale (gsdtol).
> How can I do that?
> I want the more beautiful picture. I try all gray scales that ncl
> have but they does not look good.
> Anyone has a good suggestion for me please
> Mark
> ; create color plot
> ;=============================================
> wks = gsn_open_wks ("ps", "diffhov_latusgs_gem3" ) ; open
> ps file
> gsn_define_colormap(wks,"gsdtol") ; choose colormap
> res = True ; plot mods desired
> res@cnFillOn <mailto:res@cnFillOn> = True ;
> turn on color fill
> res@gsnSpreadColors <mailto:res@gsnSpreadColors> =
> True ; use full range of colors
> res@tiMainString <mailto:res@tiMainString> = "W (m s-1)
> USGS-GEM" ;
> res@tiXAxisString <mailto:res@tiXAxisString> = "longitude"
> res@cnLevelSelectionMode <mailto:res@cnLevelSelectionMode> =
> "ManualLevels" ; manual contour levels
> res@cnMinLevelValF <mailto:res@cnMinLevelValF> =
> 0. ; min level
> res@cnMaxLevelValF <mailto:res@cnMaxLevelValF> =
> 10. ; max level
> res@cnLevelSpacingF <mailto:res@cnLevelSpacingF> =
> 2. ; contour level spacing
> res@trYMaxF <mailto:res@trYMaxF> = 54 ;
> axis max
> res@trYMinF <mailto:res@trYMinF> = 0
> res@tiYAxisString <mailto:res@tiYAxisString> = "Time" ; axis string
> res@tiXAxisString <mailto:res@tiXAxisString> = "Longitude" ; Time@units
> <mailto:Time@units> ; label bottom axis with units
> plot = gsn_csm_hov(wks, wind2, res)
>
>
>
> _______________________________________________
> ncl-talk mailing list
> List instructions, subscriber options, unsubscribe:
> http://mailman.ucar.edu/mailman/listinfo/ncl-talk
_______________________________________________
ncl-talk mailing list
List instructions, subscriber options, unsubscribe:
http://mailman.ucar.edu/mailman/listinfo/ncl-talk
Received on Tue Jan 10 18:01:43 2012

This archive was generated by hypermail 2.1.8 : Wed Jan 18 2012 - 09:21:55 MST