Hi, i'm trying to graph two lines in one picture, but however, due to my programming, my Y1 line is 500 days lag than Y2, but i want to match Y1 and Y2. so i need to lag Y2 500 days, or take Y1 ahead for 500days
The question is i dont know how to operate it in the graph winzard. could someone tell me how to do it? Many thanks!
Graphing two lines
Re: Graphing two lines
You can't do that in the wizard, or in the GRAPH command at all. The data going into it have to be aligned. Depending upon which series you want to determine the timing, you need to do either
set y2x = y2{500}
or
set y1x = y1{-500}
and graph y1 with y2x or y2 with y1x. If you want to restrict the graph only to the zone where both series are defined, you probably can't do that using the Wizard---it's not designed to handle all the possibilities allowed by GRAPH such as using specific ranges for each series.
set y2x = y2{500}
or
set y1x = y1{-500}
and graph y1 with y2x or y2 with y1x. If you want to restrict the graph only to the zone where both series are defined, you probably can't do that using the Wizard---it's not designed to handle all the possibilities allowed by GRAPH such as using specific ranges for each series.