[ncl-talk] Label bar

Rick Brownrigg brownrig at ucar.edu
Mon Mar 18 20:05:53 MDT 2019


You want to do a getvalues on the "viewport" (which represents the bounds
of the interior of the plot in graphics space). See the several examples at:

http://www.ncl.ucar.edu/Applications/viewport.shtml

Hope that helps...
Rick


On Mon, Mar 18, 2019 at 6:59 PM Yongzuo Li <yongzuoli79 at gmail.com> wrote:

> Dear All,
>
> Thanks for suggestion from Adam to make label bar manually. Attached
> are NCL codes & plot. How can I automatically find position of
> bottom-right corner so that the new label can be put inside that small
> box?
>
> Thanks
>
> Yongzuo
>
> On Mon, Mar 18, 2019 at 10:42 AM Adam Phillips <asphilli at ucar.edu> wrote:
> >
> > Hi Yongzuo,
> > I like what you did with gsn_create_labelbar to create the existing
> legend. Unfortunately, I do not think you can use that method to draw
> polymarkers. I think the best option is to manually draw the polymarker and
> label with calls to gsn_add_polymarker and gsn_add_text.
> >
> > See the polygon page here:
> https://www.ncl.ucar.edu/Applications/polyg.shtml
> > Specifically, see the wrf_nogsn_poly_5.ncl example script:
> > https://www.ncl.ucar.edu/Applications/Scripts/wrf_nogsn_poly_5.ncl
> >
> > If you have any further questions let ncl-talk know.
> > Adam
> >
> > On Sun, Mar 17, 2019 at 9:52 PM Yongzuo Li <yongzuoli79 at gmail.com>
> wrote:
> >>
> >> Hello,
> >>
> >> Attached are NCL codes and plot. How can I change thick lines to DOTS
> >> inside box at bottom right corner?
> >>
> >> Thanks
> >>
> >> Yongzuo
> >> _______________________________________________
> >> ncl-talk mailing list
> >> ncl-talk at ucar.edu
> >> List instructions, subscriber options, unsubscribe:
> >> http://mailman.ucar.edu/mailman/listinfo/ncl-talk
> >
> >
> >
> > --
> > Adam Phillips
> > Associate Scientist,  Climate and Global Dynamics Laboratory, NCAR
> > www.cgd.ucar.edu/staff/asphilli/   303-497-1726
> >
> _______________________________________________
> 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/20190318/350576df/attachment.html>


More information about the ncl-talk mailing list