<div dir="ltr"><div dir="ltr">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:<div><br></div><div><a href="http://www.ncl.ucar.edu/Applications/viewport.shtml">http://www.ncl.ucar.edu/Applications/viewport.shtml</a><br></div><div><br></div><div>Hope that helps...</div><div>Rick</div><div><br></div></div></div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Mon, Mar 18, 2019 at 6:59 PM Yongzuo Li <<a href="mailto:yongzuoli79@gmail.com">yongzuoli79@gmail.com</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left-width:1px;border-left-style:solid;border-left-color:rgb(204,204,204);padding-left:1ex">Dear All,<br>
<br>
Thanks for suggestion from Adam to make label bar manually. Attached<br>
are NCL codes & plot. How can I automatically find position of<br>
bottom-right corner so that the new label can be put inside that small<br>
box?<br>
<br>
Thanks<br>
<br>
Yongzuo<br>
<br>
On Mon, Mar 18, 2019 at 10:42 AM Adam Phillips <<a href="mailto:asphilli@ucar.edu" target="_blank">asphilli@ucar.edu</a>> wrote:<br>
><br>
> Hi Yongzuo,<br>
> 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.<br>
><br>
> See the polygon page here: <a href="https://www.ncl.ucar.edu/Applications/polyg.shtml" rel="noreferrer" target="_blank">https://www.ncl.ucar.edu/Applications/polyg.shtml</a><br>
> Specifically, see the wrf_nogsn_poly_5.ncl example script:<br>
> <a href="https://www.ncl.ucar.edu/Applications/Scripts/wrf_nogsn_poly_5.ncl" rel="noreferrer" target="_blank">https://www.ncl.ucar.edu/Applications/Scripts/wrf_nogsn_poly_5.ncl</a><br>
><br>
> If you have any further questions let ncl-talk know.<br>
> Adam<br>
><br>
> On Sun, Mar 17, 2019 at 9:52 PM Yongzuo Li <<a href="mailto:yongzuoli79@gmail.com" target="_blank">yongzuoli79@gmail.com</a>> wrote:<br>
>><br>
>> Hello,<br>
>><br>
>> Attached are NCL codes and plot. How can I change thick lines to DOTS<br>
>> inside box at bottom right corner?<br>
>><br>
>> Thanks<br>
>><br>
>> Yongzuo<br>
>> _______________________________________________<br>
>> ncl-talk mailing list<br>
>> <a href="mailto:ncl-talk@ucar.edu" target="_blank">ncl-talk@ucar.edu</a><br>
>> List instructions, subscriber options, unsubscribe:<br>
>> <a href="http://mailman.ucar.edu/mailman/listinfo/ncl-talk" rel="noreferrer" target="_blank">http://mailman.ucar.edu/mailman/listinfo/ncl-talk</a><br>
><br>
><br>
><br>
> --<br>
> Adam Phillips<br>
> Associate Scientist, Climate and Global Dynamics Laboratory, NCAR<br>
> <a href="http://www.cgd.ucar.edu/staff/asphilli/" rel="noreferrer" target="_blank">www.cgd.ucar.edu/staff/asphilli/</a> 303-497-1726<br>
><br>
_______________________________________________<br>
ncl-talk mailing list<br>
<a href="mailto:ncl-talk@ucar.edu" target="_blank">ncl-talk@ucar.edu</a><br>
List instructions, subscriber options, unsubscribe:<br>
<a href="http://mailman.ucar.edu/mailman/listinfo/ncl-talk" rel="noreferrer" target="_blank">http://mailman.ucar.edu/mailman/listinfo/ncl-talk</a><br>
</blockquote></div>