[ncl-talk] Label string

Rick Brownrigg brownrig at ucar.edu
Tue Sep 25 14:59:47 MDT 2018


Well, OK, without seeing the script and possibly the data, its difficult to
say what's going on.

On Tue, Sep 25, 2018 at 1:25 AM <G.Monte at isac.cnr.it> wrote:

> Yes, I set *resources* of course.
>
> Giulio Monte
>
>
>
>
> > Hi,
> >
> > Its unclear what might be wrong without seeing your script. If this is
> > exactly what you have in your script...
> >
> > cnExplicitLabelBarLabelsOn = True
> > lbLabelBarOn               = True
> > lbLabelsOn                 = True
> > lbBoxLinesOn               = False
> > lbBoxSeparatorLinesOn      = False
> > lbLabelStrings             = (/"100","150","200","250"/)
> >
> > ...then this would not have any effect on your plot, although I would
> have
> > expected some sort of reasonable defaults. The above is setting
> > *variables*
> > by those names -- you want to set *resources* that then get passed into
> > the
> > plotting function; something like:
> >
> > res = True
> > ...
> > res at cnExplicitLabelBarLabelsOn = True
> > res at lbLabelBarOn               = True
> > res at lbLabelsOn                 = True
> > res at lbBoxLinesOn               = False
> > res at lbBoxSeparatorLinesOn      = False
> > res at lbLabelStrings             = (/"100","150","200","250"/)
> > ...
> > plot = gsn_csm_contour_XXX(wks, ....., res)
> >
> > Is this what you have?
> >
> >
> >
> > On Mon, Sep 24, 2018 at 8:46 AM <G.Monte at isac.cnr.it> wrote:
> >
> >> Dears all,
> >> I had a contouring map with a 100-spaced intervals in the label bar, so
> >> I
> >> decided to set a label string with four/five labels in some
> >> rapresentative
> >> positions of this bar. Here the commands I used (in NCL 6.4.0):
> >>
> >> cnExplicitLabelBarLabelsOn = True
> >> lbLabelBarOn               = True
> >> lbLabelsOn                 = True
> >> lbBoxLinesOn               = False
> >> lbBoxSeparatorLinesOn      = False
> >> lbLabelStrings             = (/"100","150","200","250"/)
> >>
> >> The script did run, but only the first value of my label string was
> >> written, while I had Label_21, Label_42, Label_63, Label_84 for the
> >> others. Moreover, I realized that even if I set the first value at 150,
> >> it
> >> is placed at the same position where the previous one was. I just cannot
> >> understand where the problems are.
> >>
> >> Giulio Monte
> >>
> >>
> >>
> >> _______________________________________________
> >> 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/20180925/acc5ef94/attachment.html>


More information about the ncl-talk mailing list