Page 1 of 1

Copy graphs between pages

Posted: Wed Aug 16, 2023 12:31 pm
by mkhaled
Hi,

I am trying to copy graphs between pages in a workfile without copying the data or recreating the charts. For example, I have "graph1" in my monthly page that I am just trying to copy as is to my quarterly page. It works if I just right click and paste between the pages, but trying to code it up. Essentially, I am trying to create a chart pack with all of the graphs and so I need them all in one place.

Thanks.

Re: Copy graphs between pages

Posted: Wed Aug 16, 2023 1:01 pm
by EViews Gareth

Code: Select all

close @wf wfcreate(page=p1) a 1990 2020 series y=nrnd freeze(g) y.line pagecreate(page=p2) u 5 copy p1\g p2\g

Re: Copy graphs between pages

Posted: Wed Aug 16, 2023 1:53 pm
by mkhaled
It worked, thank you!