<div dir="ltr">Hi Laura,<div>Yes, following the descriptive syntax used in the function description:</div><div><a href="https://www.ncl.ucar.edu/Document/Graphics/Interfaces/gsn_csm_x2y2.shtml">https://www.ncl.ucar.edu/Document/Graphics/Interfaces/gsn_csm_x2y2.shtml</a><br></div><div>x1 = ispan(1980,2005,1)</div><div>y1 = new((/3,dimsizes(x1)/),float)</div><div>; fill in y1</div><div>x2 = ispan(-15,15,1)</div><div>y2 = new(dimsizes(x2),float)</div><div>; fill in y2</div><div><br></div><div>Note that the three curves put in y1 are either of the exact same size, or are put into an array that spans all three. For instance:</div><div><div style="text-decoration-style:initial;text-decoration-color:initial">x1 = ispan(1980,2005,1)</div><div style="text-decoration-style:initial;text-decoration-color:initial">y1 = new((/3,dimsizes(x1)/),float)</div>y1!1 = "time"</div><div>y1&time = x1</div><div>y1(0,{1995:2000}) = (/1.4,5.2,3.1,-0.1,3.5,-2.2/)</div><div><span style="background-color:rgb(255,255,255);text-decoration-style:initial;text-decoration-color:initial;float:none;display:inline">y1(1,{1980:1982}) = (/-0.1,3.5,-2.2/)</span></div><div>y1(2,{2003:2005}) = (/<span style="background-color:rgb(255,255,255);text-decoration-style:initial;text-decoration-color:initial;float:none;display:inline">1.1,5.9,3.2/)</span></div><div>Hope that helps!</div><div>Adam</div><div><br></div><div><br> </div><div><br></div><div><br></div><div><br></div></div><br><div class="gmail_quote"><div dir="ltr">On Tue, Jun 26, 2018 at 10:03 AM Laura Fowler <<a href="mailto:laura@ucar.edu">laura@ucar.edu</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr"><div>Hi:</div><div>I used the function gsn_csm_x2y2 to plot two arrays on different x-axis and y-axis. Is there an "easy" way to plot 3 curves on one set of x and y axis (left/bottom axes) and one other curve on the right/top axis?<br></div><div><br></div><div>Thanks,</div><div>Laura</div><div><br></div><div><br></div><br clear="all"><div><br></div>-- <br><div class="m_-3369279408364520216gmail_signature" data-smartmail="gmail_signature"><div dir="ltr"><font face="arial, helvetica, sans-serif" color="#0000ff" style="background-color:rgb(255,255,255)">!-------------------------------------------------------------------------------------------------------------</font><div><font face="arial, helvetica, sans-serif" color="#0000ff" style="background-color:rgb(255,255,255)">Laura D. Fowler                                                                                       </font></div><div><font face="arial, helvetica, sans-serif" color="#0000ff" style="background-color:rgb(255,255,255)">Mesoscale and Microscale Meteorology Division (MMM)         </font></div><div><font face="arial, helvetica, sans-serif" color="#0000ff" style="background-color:rgb(255,255,255)">National Center for Atmospheric Research<br></font></div><div><font face="arial, helvetica, sans-serif" color="#0000ff" style="background-color:rgb(255,255,255)">P.O. Box 3000, Boulder CO 80307-3000</font></div><div><font face="arial, helvetica, sans-serif" color="#0000ff" style="background-color:rgb(255,255,255)"><br></font></div><div><font face="arial, helvetica, sans-serif" color="#0000ff" style="background-color:rgb(255,255,255)">e-mail: <a href="mailto:laura@ucar.edu" target="_blank">laura@ucar.edu</a></font></div><div><font face="arial, helvetica, sans-serif" color="#0000ff" style="background-color:rgb(255,255,255)">phone: 303-497-1628</font></div><div><font face="arial, helvetica, sans-serif" color="#0000ff" style="background-color:rgb(255,255,255)"><br></font></div><div><font face="arial, helvetica, sans-serif" color="#0000ff" style="background-color:rgb(255,255,255)">!-------------------------------------------------------------------------------------------------------------</font><br></div></div></div>
</div>
_______________________________________________<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><br clear="all"><div><br></div>-- <br><div dir="ltr" class="gmail_signature" data-smartmail="gmail_signature"><div dir="ltr"><div><div dir="ltr"><div><div dir="ltr"><div><div dir="ltr"><div><div><div><span><font color="#888888">Adam Phillips <br></font></span></div><span><font color="#888888">Associate Scientist,  </font></span><span><font color="#888888">Climate and Global Dynamics Laboratory, NCAR<br></font></span></div></div><div><span><font color="#888888"><a href="http://www.cgd.ucar.edu/staff/asphilli/" target="_blank">www.cgd.ucar.edu/staff/asphilli/</a>   </font></span><span><font color="#888888">303-497-1726 </font></span></div><span><font color="#888888"></font></span><div><div><span><font color="#888888"><br></font></span><div><span><font color="#888888"><a href="http://www.cgd.ucar.edu/staff/asphilli" target="_blank"></a></font></span></div></div></div></div></div></div></div></div></div></div></div>