Multiple Series XY Line Graph

For questions regarding programming in the EViews programming language.

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

diggetybo
Posts: 152
Joined: Mon Jun 23, 2014 12:04 am

Multiple Series XY Line Graph

Postby diggetybo » Sun Mar 13, 2016 9:41 pm

Hello,

I have been trying to create a rather complicated xy line graph in eviews for a while now, the closest I got was using the copypage command. I have two issues that I would like to resolve with the following code. Most of the complications are due to the fact I'm trying to plot things from a matrix.

Code: Select all

pagecopy(rndobs=4, wf=multiple series xy line) dendrogram_output mtos(dendrogram_output,dendro_group) graph dendrogram.xyline dendro_group show dendrogram
1. When I use this copypage command, it seems like a new workfile is created, I'd like to just create a new page with the matrix from the source page but set the new page's observation range to 4. Or even better, if it could be done on the same page somehow, but I don't think that's possible using mtos.

2. After I use mtos to create a group of series, the graph displays these series all on top of eachother, despite having different x values. How do I make sure eviews knows to graph ser01 with ser02 and ser03 with ser04 but still have them all super-imposed on the same graph?

I have attached the workfile.

Thanks for looking into this


* In the workfile you'll see that obs are set to 200, I just did this to make me think of the operations needed to go from the original page to the new page if the original page was a different kind, ie: panel, timeseries, ect. The new page would have to have obs=4 in order for mtos to work. So we'd have to go from any number of n observations to 4 observations.
Attachments
multiple series xy line.WF1
(16.96 KiB) Downloaded 288 times
Last edited by diggetybo on Sun Mar 13, 2016 9:52 pm, edited 1 time in total.

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

Re: Multiple Series XY Line Graph

Postby EViews Gareth » Sun Mar 13, 2016 9:51 pm

Use pagecreate followed by copy command rather than pagecopy.

Use xypair rather than xyline.

diggetybo
Posts: 152
Joined: Mon Jun 23, 2014 12:04 am

Re: Multiple Series XY Line Graph

Postby diggetybo » Sun Mar 13, 2016 9:53 pm

Ohh, that's great. Thank you so much!


Return to “Programming”

Who is online

Users browsing this forum: No registered users and 2 guests