Re: (no subject)

From: Adam Phillips <asphilli_at_nyahnyahspammersnyahnyah>
Date: Tue Sep 10 2013 - 14:55:00 MDT

Yes. Either of the two methods I originally detailed can be used:
1) Form a 4 x N array that stores all 4 timeseries
2) Create 4 timeseries plots, then overlay the latter 3 on the first plot:

res= True
res@gsnDraw = False
res@gsnFrame = False
...
plot1 = gsn_csm_xy(wks, Feuchte4(:,126,213), hohe,res)
plot2 = gsn_csm_xy(wks, Feuchte3(:,126,213), hohe,res)
plot3 = gsn_csm_xy(wks, Feuchte2(:,126,213), hohe,res)
plot4 = gsn_csm_xy(wks, Feuchte1(:,126,213), hohe,res)
overlay(plot1,plot2)
overlay(plot1,plot3)
overlay(plot1,plot4)
draw(plot1)
frame(wks)

Adam

On 09/10/2013 02:47 PM, anna@hbittnersth.de wrote:
>
> Thanks for your help. I have a second question.
>
> Is it also possible to get 4 lines on one plot? As far as I know
> overlay is only possible for 2lines
>
>
>> ----- Ursprüngliche Nachricht -----
>> Von: Adam Phillips
>> Gesendet: 10.09.13 16:48 Uhr
>> An: anna@hbittnersth.de
>> Betreff: Re: [ncl-talk] (no subject)
>>
>> 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 Phillipsasphilli@ucar.edu
>> NCAR/Climate and Global Dynamics Division (303) 497-1726
>> P.O. Box 3000
>> Boulder, CO 80307-3000http://www.cgd.ucar.edu/cas/asphilli
>>
>>
>>
>
>
> _______________________________________________
> 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 14:55:12 2013

This archive was generated by hypermail 2.1.8 : Mon Sep 16 2013 - 13:43:52 MDT