Continuous Label Bar

From: IMRAN NADEEM <qphoton_at_nyahnyahspammersnyahnyah>
Date: Fri, 14 Nov 2008 18:19:44 +0100

Hi everybody,

          I am trying to make a continuous label bar as shown in attached
file. I defined the
color map with colors used in the attached label bar.I tried different
options but couldn't succeed.

Any help or suggestion is highly appreciated
Nadeem

-------------------------------------------------------------------------------------------------------------------------

  cmap=(/ (/255,255,255/),(/0,0,0/),(/1,98,70/),(/4,103,65/)\
 ,(/7,108,60/),(/11,114,55/),(/14,119,50/),(/26,126,51/),(/70,145,66/)\
 ,(/115,165,83/),(/160,184,99/),(/204,203,115/),(/229,209,119/),(/214,178,94/)\
 ,(/199,147,68/),(/185,117,42/),(/170,86,16/),(/161,64,0/),(/160,50,0/)\
 ,(/160,36,0/),(/159,23,0/),(/158,8,0/),(/156,5,5/),(/146,27,27/)\
 ,(/136,50,50/),(/126,73,73/),(/116,96,96/),(/116,116,116/),(/146,146,146/)\
 ,(/176,176,176/),(/206,206,206/),(/236,236,236/),(/255,255,255/)\
 ,(/255,255,255/),(/255,255,255/),(/255,255,255/),(/255,255,255/) /) /255.0

 gsn_define_colormap(wks,cmap)
 res_at_cnLevelSelectionMode = "ExplicitLevels" ; Define own levels.
 res_at_cnLevels =
(/0.,50.,500.,1200.,1700.,2200.,3000.,3500,4000.,4500./)
 res_at_lbLabelAlignment = "ExternalEdges"
 res_at_gsnSpreadColors = True

;The data I am plotting is Topograpgy ranges from 0 to 4500.
-----------------------------------------------------------------------------------------------------------------

_______________________________________________
ncl-talk mailing list
List instructions, subscriber options, unsubscribe:
http://mailman.ucar.edu/mailman/listinfo/ncl-talk

labelbar.png
Received on Fri Nov 14 2008 - 10:19:44 MST

This archive was generated by hypermail 2.2.0 : Fri Nov 14 2008 - 16:42:12 MST