Hi Lawrence,
Another option is to set gsnFrame = False, and overlay multiple plots on
one another. You would have to make sure that each plot is drawn with
the same Y/X-axis spans, labels, and titles, but it isn't that hard. For
example:
res = True
res_at_gsnFrame = False
res_at_trXMinF = 0.
res_at_trXMaxF = 360.
res_at_trYMinF = 0.
res_at_trYMaxF = 20.
res_at_gsnLeftString = ""
res_at_gsnRightString = ""
res_at_gsnCenterString = ""
res_at_tiMainString = ""
res_at_vpWdithF = 0.8 ; stretch out the plot (optional)
res_at_vpHeightF = 0.4 ;
res_at_xyLineColor = "blue"
plot = gsn_csm_xy(wks,file1&lon,file1,res)
res_at_xyLineColor = "red"
plot2 = gsn_csm_xy(wks,file2&lon,file2,res)
res_at_xyLineColor = "green"
plot3 = gsn_csm_xy(wks,file3&lon,file3,res)
frame(wks)
If you are paneling this can get messy, but it is still possible. If you
want a legend you will have to manually create it. An example of doing
that is shown here in example 8:
http://www.ncl.ucar.edu/Applications/legend.shtml#ex8
Good luck,
Adam
Lawrence wrote:
> Dear NCL users,
> I want to draw a multi-line XY plot, say the x-axis is longitude
> and the y-axis is precipitation. The problem is the longitude for the
> models data is different, i.e. the number of x-axis is not the same. I
> don't want to interpolate them into the same grid, because the
> interpolation may smooth the signal I need. Is there any way to do this?
> Any suggestion will be appreciated.
>
> Regards,
> Lawrence
>
>
> ------------------------------------------------------------------------
>
> _______________________________________________
> ncl-talk mailing list
> ncl-talk_at_ucar.edu
> http://mailman.ucar.edu/mailman/listinfo/ncl-talk
-- -------------------------------------------------------------- Adam Phillips asphilli_at_ucar.edu National Center for Atmospheric Research tel: (303) 497-1726 ESSL/CGD/CAS fax: (303) 497-1333 P.O. Box 3000 Boulder, CO 80307-3000 http://www.cgd.ucar.edu/cas/asphilli _______________________________________________ ncl-talk mailing list ncl-talk_at_ucar.edu http://mailman.ucar.edu/mailman/listinfo/ncl-talkReceived on Thu Apr 05 2007 - 10:03:48 MDT
This archive was generated by hypermail 2.2.0 : Wed Apr 11 2007 - 08:36:47 MDT