RE: [ncl-talk] add plots in ncl

From: Debasish Pai Mazumder <debasish_at_nyahnyahspammersnyahnyah>
Date: Thu, 2 Aug 2007 12:44:44 -0800

Dear Lin,

You can declare

data=new((/3,4/),float) ; dimension= column, time
 
data(0,:)= column2(:)
data(1,:)= column3(:)
data(2,:)= column4(:)

Then in plotting statement:

plot= gsn_csm_xy (wks,day,data(:,:),res) ; create plot

check the example2 in

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

Good luck

Debasish

-----Original Message-----
From: Lin Su [mailto:Lin.Su_at_Colorado.EDU]
Sent: Thursday, August 02, 2007 12:19 PM
To: Debasish Pai Mazumder; 'Lin Su'; ncl-talk_at_ucar.edu
Subject: RE: [ncl-talk] add plots in ncl

Hello, Debasish,

I appreciate your kindly reply:)
My case is as follows, and sorry that I didn't give more clearly expressions
in my last email:

Now I have 4 columns data which looks like this:
----------------------------
1 0.1 0.2 0.1
2 0.2
3 0.2
4 0.4 0.3 0.5
---------------------------
The first column is the time (day), the second column is the data with the
whole column. However, the other two columns with only half data of column
2. How can I plot these 3 lines of time series in one plot? I tried to
seperate these data into 3 files and used gsn_csm_xy3 to plot it. However, I
got 3 y axes which I didn't expect.

Thanks again,
-Lin

  
---- Original message ----
>Date: Thu, 2 Aug 2007 11:25:47 -0800
>From: "Debasish Pai Mazumder" <debasish_at_gi.alaska.edu>
>Subject: RE: [ncl-talk] add plots in ncl
>To: "'Lin Su'" <Lin.Su_at_Colorado.EDU>, <ncl-talk_at_ucar.edu>
>
>Dear Lin,
>
>You can check the "overlay" in
>
>http://www.ncl.ucar.edu/Document/Functions/Built-in/overlay.shtml
>
>or the example2 in
>
>http://www.ncl.ucar.edu/Applications/xy.shtml
>
>This example produces multiple line plots with varying colors, thicknesses,
>and markers.
>
>Thanks
>
>Debasish
>
>
>-----Original Message-----
>From: ncl-talk-bounces_at_ucar.edu [mailto:ncl-talk-bounces_at_ucar.edu] On
Behalf
>Of Lin Su
>Sent: Thursday, August 02, 2007 11:10 AM
>To: ncl-talk_at_ucar.edu
>Subject: add plots in ncl
>
>Hello, all,
>
>Could anybody tell me how to add another two lines in the xy plot? I tried
>gsn_polyline and gsn_csm_xy3, and which are not what I need. Actually, I am
>looking for some function which likes IDL oplot.
>
>Thanks a lot,
>-Lin
>_______________________________________________
>ncl-talk mailing list
>ncl-talk_at_ucar.edu
>http://mailman.ucar.edu/mailman/listinfo/ncl-talk
>
>

_______________________________________________
ncl-talk mailing list
ncl-talk_at_ucar.edu
http://mailman.ucar.edu/mailman/listinfo/ncl-talk
Received on Thu Aug 02 2007 - 14:44:44 MDT

This archive was generated by hypermail 2.2.0 : Mon Aug 06 2007 - 08:08:45 MDT