Changing graph settings of graphs created within a spool

For questions regarding programming in the EViews programming language.

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

jacarandas
Posts: 20
Joined: Tue Feb 10, 2015 10:11 pm

Changing graph settings of graphs created within a spool

Postby jacarandas » Wed Sep 28, 2016 7:08 pm

Hi,

I have been looking around on this forum and through the command pdf for some help on spool objects. I have not found any and thought it would be good to get some help here.

I have created a series of graphs within a spool object. How do I modify the properties of each graph within each spool object I have created using programming code? I would like to add gridlines, add an area colour from a certain date onwards, make the line thicker.

Thanks!

for %c eg1 eg2 eg3
for !i=1 to {%c}.@count
%name = {%c}.@seriesname(!i)
graph_{%c}.append {%name}.line
!j = graph_{%c}.@count
graph_{%c}.name !j %name
next
next

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

Re: Changing graph settings of graphs created within a spool

Postby EViews Gareth » Wed Sep 28, 2016 9:46 pm

You have to create a graph object, change the settings on that graph object, then add the graph to the spool. Once a graph is inside a spool, you cannot change its settings.


Return to “Programming”

Who is online

Users browsing this forum: No registered users and 2 guests