Page 1 of 1

Plot two vectors in one graph

Posted: Fri Jan 23, 2015 11:48 am
by student07
I want to plot two vectors in the same graph. For the first vector, I use the following code:

Code: Select all

freeze(mode=overwrite, mygraph) abc.line
Now how can I plot a second vector (say abc2) in the same graph?

Thank you in advance.

Re: Plot two vectors in one graph

Posted: Fri Jan 23, 2015 11:49 am
by EViews Gareth
You'd have to concatenate the two vectors into a matrix, then plot the matrix.

Re: Plot two vectors in one graph

Posted: Sat Jan 24, 2015 3:00 am
by student07
You'd have to concatenate the two vectors into a matrix, then plot the matrix.
Thanks, that did the trick :)!