Hello, I have 2 labelbars in a plot and I want the first uses the color I set and the other the color of a color map..
I do this...
gsn_define_colormap(wks,"WhiteBlue") ; Define the colormap
LABELBAR1 (the colors I set on cnfillcolors)
; Plotting options for DBZ
opts_qg = opts_xy
opts_qg@cnLevelSelectionMode = "ExplicitLevels"
opts_qg@cnLevels = (/ 0, 20, 30, 40, 60, 70/)
opts_qg@cnFillColors = (/"White","Blue","Green", \
"Yellow","Red","Magenta"/)
opts_qg@cnMinLevelValF = 0 ; min level
opts_qg@cnMaxLevelValF = 80 ; max level
;opts_qg@pmLabelBarOrthogonalPosF = 0
opts_qg@cnFillOn = True
;opts_qg@gsnContourLineThicknessesScale = 1.0
LABELBAR2 (The colors of the color map WhiteBlue)
; Plotting options for CF
opts_cf = opts_xy
opts_cf@pmLabelBarSide = "right"
opts_cf@lbOrientation = "vertical"
opts_cf@pmLabelBarWidthF = 0.2 ; default is shorter
opts_cf@pmLabelBarHeightF = 0.31 ; default is taller
opts_cf@cnFillOn = True
But I the color of the color map affect the colors of the LABELBAR1, the LABELBAR2 uses the color of the colormap.
I try a lot of things that I can remember now.
What I'm missing!!!
Regards
_______________________________________________
ncl-talk mailing list
List instructions, subscriber options, unsubscribe:
http://mailman.ucar.edu/mailman/listinfo/ncl-talk
Received on Fri Nov 4 09:16:27 2011
This archive was generated by hypermail 2.1.8 : Tue Nov 08 2011 - 15:54:50 MST