Re: legend for multi-curves on panel plot

From: Adam Phillips <asphilli_at_nyahnyahspammersnyahnyah>
Date: Mon Jul 08 2013 - 13:02:47 MDT

Hi Hongyan,
If you are paneling, it is recommended that you use gsn_add_text and
gsn_add_polyline and not gsn_polyline/gsn_text. See the documentation here:
http://www.ncl.ucar.edu/Document/Graphics/Interfaces/gsn_add_text.shtml
http://www.ncl.ucar.edu/Document/Graphics/Interfaces/gsn_add_polyline.shtml

Try switching to those two functions and let ncl-talk know if that does
not fix your issue.
Adam

On 7/8/13 12:50 PM, H.Dang wrote:
> Hello,
>
> I have got 16 xy-plots on one page by using:
>
> gsn_panel(wks,plot,(/4,4/),resP)
>
> where plot = new(16,graphic)
>
> Each xy-plot has 3 curves on it. I want to create a legend for these
> 3 curves using
>
> xxt= -83
> xx = (/-89,-85/)
> yy = (/220.,220./)
> gsn_polyline(wks,plot(1),xx,yy,res_lines)
> gsn_text(wks,plot(1),txt_T,xxt,220,res_text)
>
> The Y axis for all xy-plots are like:
>
> res@trYMinF = 20.0
> res@trYMaxF = 230.0
>
> The X axis is latitude from -90 to 90.
>
> The legend on the page is not on the left-top corner of the first
> plot, but near its bottom-right corner. When I change 220 to 250, the
> legend is missing.
>
> So my question is how to generate one or 16 legends (I only need one
> for all 16 xy-plots).
>
> Thank you!
>
> Hongyan
>
>
>
>
>
> _______________________________________________
> ncl-talk mailing list
> List instructions, subscriber options, unsubscribe:
> http://mailman.ucar.edu/mailman/listinfo/ncl-talk

_______________________________________________
ncl-talk mailing list
List instructions, subscriber options, unsubscribe:
http://mailman.ucar.edu/mailman/listinfo/ncl-talk
Received on Mon Jul 8 13:02:57 2013

This archive was generated by hypermail 2.1.8 : Fri Jul 12 2013 - 16:37:39 MDT