exporting graphs to excel or save as jpg

For questions regarding programming in the EViews programming language.

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

tobi_mueller
Posts: 9
Joined: Mon Sep 17, 2012 2:37 am

exporting graphs to excel or save as jpg

Postby tobi_mueller » Thu Sep 20, 2012 7:58 am

Hi Folks,
Is there a code that allows to export graphs directly into an existing or new excel file? If not, how to export saved graphs as jpg or alike?

So far I've only managed to save plots as follows:

graph dm_cpi.line(o=spartan,ab=b) cpi_dm_forecast_li2 cpi_dm_0 cpi_dm

thanks for your help in advance :D

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

Re: exporting graphs to excel or save as jpg

Postby EViews Gareth » Thu Sep 20, 2012 8:14 am

Look up graph.save in the object reference.

tobi_mueller
Posts: 9
Joined: Mon Sep 17, 2012 2:37 am

Re: exporting graphs to excel or save as jpg

Postby tobi_mueller » Fri Sep 21, 2012 12:14 am

Thanks Gareth!!!

The following code worked for me:

graph_name.save "path\name of graph.jpg"

E.g.

global_cpi.save "Q:\GLOBAL-TEAM\07_Analysts\Tobi_Müller\Projects\Global Inflation Forecasting\Results\Global CPI.jpg"


Return to “Programming”

Who is online

Users browsing this forum: No registered users and 2 guests