Plot two vectors in one graph

For questions regarding programming in the EViews programming language.

Moderators: EViews Gareth, EViews Jason, EViews Moderator, EViews Matt

student07
Posts: 18
Joined: Tue Jun 03, 2014 5:58 am

Plot two vectors in one graph

Postby student07 » Fri Jan 23, 2015 11:48 am

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.

EViews Gareth
Fe ddaethom, fe welon, fe amcangyfrifon
Posts: 13308
Joined: Tue Sep 16, 2008 5:38 pm

Re: Plot two vectors in one graph

Postby EViews Gareth » Fri Jan 23, 2015 11:49 am

You'd have to concatenate the two vectors into a matrix, then plot the matrix.
Follow us on Twitter @IHSEViews

student07
Posts: 18
Joined: Tue Jun 03, 2014 5:58 am

Re: Plot two vectors in one graph

Postby student07 » Sat Jan 24, 2015 3:00 am

EViews Gareth wrote:You'd have to concatenate the two vectors into a matrix, then plot the matrix.


Thanks, that did the trick :)!


Return to “Programming”

Who is online

Users browsing this forum: No registered users and 26 guests