>
> matt,
>
> you may be missing:
>
> res@pmLabelBarDisplayMode = "Always" ; turns on label bar
> see
>
> http://echorock.cgd.ucar.edu/csm/support/CSM_Graphics/Scripts/lb_5.ncl
> for my web example of creating a colorbar from scratch
>
But Matt is using gsn_labelbar_ndc which directly creates a labelbar,
so no pm* resources are going to affect his labelbar. The pm* resources
only come into effect when you have a labelbar associated with a plot.
The URL you gave doesn't create a labelbar from scratch. It uses the
labelbar automatically generated by the contour plot, and then it
sets some resources to change the look of it.
In Matt's case, the reason why the lbPerimOn resource is not working
is because you need an "lbres@" in front of it.
As for the lbFillPattern resource, if you want solid fill for each
box, you need to also set lbMonoFillPattern to True. The default is
False, which means it's going to use different fill patterns for each
box.
Your final resource list might look something like this:
lbres = True
lbres@lbAutomanage = False
lbres@lbLabelFontHeightF = 0.013
lbres@vpHeightF = .09
lbres@vpWidthF = .5
lbres@lbPerimOn = False
lbres@lbFillPattern = "SolidFill"
lbres@lbMonoFillPattern = True
gsn_labelbar_ndc(wks,4,labels,0.4,0.2,lbres)
--Mary
>
>
> On Wed,
> 15 Jan 2003, Matt Fearon wrote:
>
> > Dear NCL users:
> >
> > I am trying to use the gsn_labelbar_ndc procedure to add
> > a labelbar into the viewport. However, I am having trouble
> > modifying the labelbar resources - many of resources are
> > seemingly being ignored, i.e., the resources with asterisks in
> > front are the only ones that seem to be working;
> >
> > *lbres = True
> > lbres@lbAutoManage = False
> > *lbres@lbLabelFontHeightF = 0.013
> > * lbres@vpHeightF = .09
> > *lbres@vpWidthF = .5
> > lbPerimOn = False
> > lbres@lbFillPattern = "SolidFill"
> > gsn_labelbar_ndc(wks,4,labels,0.4,0.2,lbres)
> >
> > Is there a resource I can set that will allow me to custom the labelbar?
> > thank you,
> > Matt
> >
> >
> >
> > _______________________________________________
> > ncl-talk mailing list
> > ncl-talk AT ucar.edu
> > http://mailman.ucar.edu/mailman/listinfo/ncl-talk
> >
>
>
>
> ******************************************************
> Sylvia Murphy EML: murphys AT ucar.edu
> NCAR CGD/CAS PHN: 303-497-1720
> 3080 Center Green Drive FAX: 303-497-1333
> Boulder CO 80301
>
>
> WEB: http://www.cgd.ucar.edu/csm/support/
> http://www.cgd.ucar.edu/csm/support/CSM_Graphics/
> ******************************************************
>
>
>
> _______________________________________________
> ncl-talk mailing list
> ncl-talk AT ucar.edu
> http://mailman.ucar.edu/mailman/listinfo/ncl-talk
>
_______________________________________________
ncl-talk mailing list
ncl-talk AT ucar.edu
http://mailman.ucar.edu/mailman/listinfo/ncl-talk
This archive was generated by hypermail 2b29 : Wed Jan 15 2003 - 12:57:18 MST