[ncl-talk] lbLabelStrings not overwriting cnLevels
haley at ucar.edu
Mon Feb 12 12:42:53 MST 2018
Sorry about the delay. Most of the NCL team was out for a workshop last
You shouldn't need to set cnExplicitLabelBarLabelsOn at all.
In order to control the labelbar label strings, you should only need
Did you see example vegland_1.ncl at:
See the first frame of this example, which does something similar to what
If you want every single box labeled, then you may need to set
lbLabelAutoStride to False, because otherwise NCL might try to reduce the
number of labels added to the boxes. You shouldn't additionally need to
set lbLabelStride to 1, although this doesn't hurt.
On Mon, Feb 5, 2018 at 9:41 PM, Victoria Treadaway <vtreada at uri.edu> wrote:
> My understanding is that if I set res at cnExplicitLabelBarLabelsOn = True
> that I can rename the colorbar label strings. I'm trying to plot
> categorical data and follow the examples. However, the colorbar label is
> clearly not resetting. Am I missing something? Or is there a something I'm
> setting that is interfering?
> opts_rh at pmLabelBarDisplayMode = "Always"
> opts_rh at cnExplicitLabelBarLabelsOn = True
> opts_rh at cnFillPalette = colors
> opts_rh at cnFillOn = True ; turns on the
> opts_rh at cnLineLabelsOn = False
> opts_rh at cnLevelSelectionMode = "ManualLevels" ; set
> explicit contour levels
> opts_rh at cnMinLevelValF = 1
> opts_rh at cnMaxLevelValF = 5
> opts_rh at cnLevelSpacingF = 1
> opts_rh at lbLabelPosition = "Center" ; label position
> opts_rh at lbLabelAlignment = "BoxCenters" ; label orientation
> opts_rh at lbLabelStrings = (/"T","E","S","T","5"/)
> opts_rh at lbLabelStride = 1
> opts_rh at lbLabelAutoStride = False
> opts_rh at cnSpanFillPalette = False
> opts_rh at lbOrientation = "vertical" ; vertical
> label bars
> opts_rh at pmLabelBarSide = "right"
> ;opts_rh at tmYLMode = "Explicit"
> opts_rh at tmYLLabels = sprintf("%.1f",fspan(zmin,zmax,nz))
> ; Create labels
> opts_rh at tiMainString = "TEST"
> opts_rh at tiXAxisString = "Distance From ARMOR (W/E) in km"
> opts_rh at tiYAxisString = "Altitude (km)"
> opts_rh at cnLineLabelsOn = False ; turn off contour info label
> opts_rh at cnMissingValFillPattern = 0
> opts_rh at cnMissingValFillColor = "white"
> Thanks for your help,
> <https://www.avast.com/sig-email?utm_medium=email&utm_source=link&utm_campaign=sig-email&utm_content=webmail&utm_term=icon> Virus-free.
> ncl-talk mailing list
> ncl-talk at ucar.edu
> List instructions, subscriber options, unsubscribe:
-------------- next part --------------
An HTML attachment was scrubbed...
More information about the ncl-talk