[ncl-talk] lbLabelStrings not overwriting cnLevels
Mary Haley
haley at ucar.edu
Mon Feb 12 12:42:53 MST 2018
Hi Victoria,
Sorry about the delay. Most of the NCL team was out for a workshop last
week.
You shouldn't need to set cnExplicitLabelBarLabelsOn at all.
In order to control the labelbar label strings, you should only need
lbLabelStrings.
Did you see example vegland_1.ncl at:
http://www.ncl.ucar.edu/Applications/classification.shtml
See the first frame of this example, which does something similar to what
you want.
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.
--Mary
On Mon, Feb 5, 2018 at 9:41 PM, Victoria Treadaway <vtreada at uri.edu> wrote:
> Hello,
>
> 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
> color
> 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,
>
> Victoria
>
>
>
>
> <https://www.avast.com/sig-email?utm_medium=email&utm_source=link&utm_campaign=sig-email&utm_content=webmail&utm_term=icon> Virus-free.
> www.avast.com
> <https://www.avast.com/sig-email?utm_medium=email&utm_source=link&utm_campaign=sig-email&utm_content=webmail&utm_term=link>
> <#m_-9060752222383718210_DAB4FAD8-2DD7-40BB-A1B8-4E2AA1F9FDF2>
>
> _______________________________________________
> ncl-talk mailing list
> ncl-talk at ucar.edu
> List instructions, subscriber options, unsubscribe:
> http://mailman.ucar.edu/mailman/listinfo/ncl-talk
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mailman.ucar.edu/pipermail/ncl-talk/attachments/20180212/063f15e8/attachment.html>
More information about the ncl-talk
mailing list