Hi Xin,
I have not tested this, but I think you can change this:
"caYArray": p1
to this:
"caYArray": t1
and then change this:
dataspec = NhlAddData(plot@xy2,"xyCoordData",dataid) ; Set some
resources for new curve.
setvalues dataspec
"xyLineColor" : resL@xyLineColor
"xyLineThicknessF" : resL@xyLineThicknessF
"xyDashPattern" : 7
end setvalues
to this:
dataspec = NhlAddData(plot@xy,"xyCoordData",dataid) ; Set some resources
for new curve.
setvalues dataspec
"xyLineColor" : resL@xyLineColor
"xyLineThicknessF" : resL@xyLineThicknessF
"xyDashPattern" : 7
end setvalues
If that doesn't work please respond to the ncl-talk email list..
Adam
On 03/13/2013 11:10 PM, Xin Xi wrote:
> Hello,
> I am following this example to make a xy plot with two Y axis:
> http://www.ncl.ucar.edu/Applications/Scripts/xy_25.ncl
> How do I have two lines using left Yaxis (example shows for right Yaxis)?
> Thanks.
> Xin
>
>
> _______________________________________________
> ncl-talk mailing list
> List instructions, subscriber options, unsubscribe:
> http://mailman.ucar.edu/mailman/listinfo/ncl-talk
-- ______________________________________________________________ Adam Phillips asphilli@ucar.edu NCAR/Climate and Global Dynamics Division (303) 497-1726 P.O. Box 3000 Boulder, CO 80307-3000 http://www.cgd.ucar.edu/cas/asphilli
_______________________________________________
ncl-talk mailing list
List instructions, subscriber options, unsubscribe:
http://mailman.ucar.edu/mailman/listinfo/ncl-talk
Received on Thu Mar 14 10:16:01 2013
This archive was generated by hypermail 2.1.8 : Tue Mar 19 2013 - 16:31:18 MDT