Re: x3y3 plot

From: Mary Haley <haley_at_nyahnyahspammersnyahnyah>
Date: Wed, 20 May 2009 10:45:03 -0600 (MDT)

Hi Jam,

We don't have an example of this, unfortunately, and it's not trivial.

I don't have time to come up with an example right away, but
here's an outline of how you might do this:

   - Call gsn_csm_x2y2 to create two of the curves:

      plot12 = gsn_csm_x2y2(wks,x1,x2,y1,y2,res1,res2)

     Be sure to set trMin/MaxX/F resources to get the X/Y axis limits exactly
     as you want them.

   - Call gsn_csm_xy to create the third curve, setting
     tfDoNDCOverlay to True in the resource list (ovrly_plot).

      plot3 = gsn_csm_xy(wks,x3,y3,res3)

     Again, set trMin/MaxX/F resources to get the X/Y axis limits
     exactly as you want them.

         You will need to set any necessary resources to turn off
     titles and perhaps other annotations you don't want.

   - Overlay the the plots:

       overlay(plot12,plot3)

   - Attach single vertical and horizontal axes to represent third curve.
     You can see a sample of how this is done for a Y axis in example
     27 at:

       http://www.ncl.ucar.edu/Applications/xy.shtml#ex27

   - Once you have all this:

        draw(plot12)
        frame(wks)

If this is too hard to figure out, let me know and I'll try to come up
with an example when I have time.

--Mary

On Wed, 20 May 2009, jam hong wrote:

>
> Hi Dr. Shea again
>
> I wonder that do you have a function to plot time series which has x axis for 3 variables and y axis for 3 variables.
>
> I found only x2y2.
>
> Thanks
>
> Jam
>
>
> _________________________________________________________________
> Windows Live™: Keep your life in sync. Check it out!
> http://windowslive.com/explore?ocid=TXT_TAGLM_WL_t1_allup_explore_012009

_______________________________________________
ncl-talk mailing list
List instructions, subscriber options, unsubscribe:
http://mailman.ucar.edu/mailman/listinfo/ncl-talk
Received on Wed May 20 2009 - 10:45:03 MDT

This archive was generated by hypermail 2.2.0 : Thu May 21 2009 - 16:54:57 MDT