Hello,
There are a few different ways to get two lines on one plot.
1) Form a 2 x N array that stores both timeseries...
(See example #2 here, one of many line examples on this page:
http://www.ncl.ucar.edu/Applications/xy.shtml#ex2)
2) overlay one timeseries on another
I'd suggest option #2 in your case. You will need to set gsnDraw and
gsnFrame to False, overlay the two plots, and manually call drawn and frame:
res = True
res@gsnDraw = False ; do not draw the plot when the plot is created
res@gsnFrame = False l do not advance the frame
res@tiMainString ="profil des 24.08.2010" ;Titel
res@tiYAxisString ="Höhe in hPa"
res@tiXAxisString ="Temperatur in K"
res@xyLineColors =(/"red"/) ;Linienfarbe
res@trYReverse =True ;reverser Y-axis
plot = gsn_csm_xy(wks, Feuchte4(:,126,213), hohe,res)
res@xyLineColors =(/"blue"/) ;Linienfarbe
plot2 = gsn_csm_xy(wks, Feuchte3(:,126,213), hohe,res)
overlay(plot,plot2)
draw(plot)
frame(wks)
Hope that helps. If you have any further questions please respond to
ncl-talk.
Adam
On 09/10/2013 02:45 AM, anna@hbittnersth.de wrote:
>
> Can you tell me how can I creat on XY graph with two differenz curve?
> In case I use my script I get 2 graphs
>
>
>
>
> _______________________________________________
> 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 Tue Sep 10 08:49:04 2013
This archive was generated by hypermail 2.1.8 : Mon Sep 16 2013 - 13:43:52 MDT