X
PrevPrev Go to previous topic
NextNext Go to next topic
Last Post 17 Mar 2014 08:31 AM by  anon
can't oplot shifted multiple plots
 2 Replies
Sort:
You are not authorized to post a reply.
Author Messages

anon



New Member


Posts:
New Member


--
17 Mar 2014 08:31 AM
    I want to plot xx, vs. yyy to see if the function varies. I plot first yyy : iplot, xx, yyy[1,*] , where * means all values in the row 1. I need yyy[2, *] to be shifted by 20. , I wrote so: .run for i=1, 3 do begin iplot, xx, yyy[i,(*+20)], /overplot, $ LINESTYLE=2 end end and it gives me syntax error in this line: iplot, xx, yyy[i,(*+20)] Can anyone help me with it? how to write second argument for yyy (instead of (*+20)? Thank you in advance

    Deleted User



    New Member


    Posts:
    New Member


    --
    17 Mar 2014 09:20 AM
    I tried to do like this : iplot, xx, yyy[0,*] .run for i=1, 3 do begin y4[i,*]=yyy[i,*]+2 iplot, xx, y4[i,*], /overplot, $ LINESTYLE=2 end end But it works only for second curve, not for other ones. PLEASE HELP

    Berangere Casson



    New Member


    Posts:61
    New Member


    --
    18 Mar 2014 08:35 AM
    I am not entirely sure of the output you expect but wondered if the code below (derived from your code) would not meet your needs. x=indgen(100) y=indgen(4,100) iplot,x,y[0,*] FOR i=1, 3 DO BEGIN y1=y[i,*]+20*i iplot, x, y1, /overplot, $ LINESTYLE=2 END
    You are not authorized to post a reply.