Page 1 of 1

exporting graphs to excel or save as jpg

Posted: Thu Sep 20, 2012 7:58 am
by tobi_mueller
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

Re: exporting graphs to excel or save as jpg

Posted: Thu Sep 20, 2012 8:14 am
by EViews Gareth
Look up graph.save in the object reference.

Re: exporting graphs to excel or save as jpg

Posted: Fri Sep 21, 2012 12:14 am
by tobi_mueller
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"