[ncl-talk] creating a legend with gsn_csm_xy2
Adam Phillips
asphilli at ucar.edu
Thu Nov 19 16:55:04 MST 2020
Hi Manisha,
Try setting xyExplicitLegendLabelsOn, as is shown in legends example #1
here:
http://www.ncl.ucar.edu/Applications/Scripts/leg_1.ncl
(lgLabelStrings works on contours, while xyExplicitLegendLabelsOn works on
xy plots.)
If that doesn't solve your issue let ncl-talk know.
Adam
On Thu, Nov 19, 2020 at 10:08 AM Manisha Ganeshan via ncl-talk <
ncl-talk at mailman.ucar.edu> wrote:
> Hello,
>
> I'm trying to create a legend for a double Y-axis XY plot that is created
> using gsn_csm_xy2 function.
>
> The legend is getting plotted twice for the left and right Y axes,
> respectively, which is fine.
> However, for some reason, I'm unable to change the Label of the legend
> using resL at lgLabelStrings = "*mytext for left Y-axis"*
> resR at lgLabelStrings = "*mytext for right Y-axis"*
>
> Any advice?
>
> Thanks,
> Manisha
> --
> Dr. Manisha Ganeshan
> Universities Space Research Association
> Maryland, U.S.A.
> _______________________________________________
> ncl-talk mailing list
> ncl-talk at mailman.ucar.edu
> List instructions, subscriber options, unsubscribe:
> https://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
<http://www.cgd.ucar.edu/staff/asphilli>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://mailman.ucar.edu/pipermail/ncl-talk/attachments/20201119/2c2e561c/attachment.html>
More information about the ncl-talk
mailing list