[ncl-talk] Label bar

Yongzuo Li yongzuoli79 at gmail.com
Mon Mar 18 19:59:39 MDT 2019


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
>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: LandBuoywind_radii.ncl
Type: application/octet-stream
Size: 6763 bytes
Desc: not available
URL: <http://mailman.ucar.edu/pipermail/ncl-talk/attachments/20190318/9ac0d138/attachment.obj>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: LandBuoy2019022621_R25_SW.pdf
Type: application/pdf
Size: 150034 bytes
Desc: not available
URL: <http://mailman.ucar.edu/pipermail/ncl-talk/attachments/20190318/9ac0d138/attachment.pdf>


More information about the ncl-talk mailing list