Copy graphs between pages

For questions regarding the import, export and manipulation of data in EViews, including graphing and basic statistics.

Moderators: EViews Gareth, EViews Jason, EViews Steve, EViews Moderator

mkhaled
Posts: 3
Joined: Mon Apr 17, 2023 2:18 pm

Copy graphs between pages

Postby mkhaled » Wed Aug 16, 2023 12:31 pm

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.

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

Re: Copy graphs between pages

Postby EViews Gareth » Wed Aug 16, 2023 1:01 pm

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
Follow us on Twitter @IHSEViews

mkhaled
Posts: 3
Joined: Mon Apr 17, 2023 2:18 pm

Re: Copy graphs between pages

Postby mkhaled » Wed Aug 16, 2023 1:53 pm

It worked, thank you!


Return to “Data Manipulation”

Who is online

Users browsing this forum: Google [Bot] and 12 guests