Page 1 of 1

Graph axes and saving to RTFs with color

Posted: Sun Jan 06, 2013 11:55 pm
by fjoutz
I am using EViews 7.2
I have two issues.
First, I don't seem to be able to get vertical grids (gridt or gridb) in my graphs. I have tried using the ".axis" command and the ".options". For example here are two lines of code

fig_grp_{%ptype}_obsbyq.options gridpat(3) gridl

fig_grp_{%ptype}_obsbyq.options gridpat(3) gridt

I am able to get horizontal grids from left or right, but never top or bottom. The grid option "grid" gives an error meessage when replacing "gridl" in the first line

Second, when I save graphs to "RTF" files and import into MSWord, they are only in black and white. Below is an example of my code.

' *** Store to Spool ***
spool_{%fname}_fig.append fig_grp_f_4ci fig_grp_f_4mm fig_grp_lf_4ci fig_grp_lf_4mm
'==================================================================
'
' *** Save the Figures Spool to an RTF File
'
'==================================================================
spool_{%fname}_fig.save(t=rtf) spool_{%fname}_fig

Thanks for your help.
Fred

Re: Graph axes and saving to RTFs with color

Posted: Mon Jan 07, 2013 8:58 am
by EViews Gareth
Use:

Code: Select all

fig_grp_{%ptype}_obsbyq.options gridpat(3) gridt gridauto
to get the top grid lines

Re: Graph axes and saving to RTFs with color

Posted: Mon Jan 07, 2013 9:56 am
by EViews Jason
In regards to the second issue, when trying saving to rtf, EViews uses the color setting found in File->Print Setup. In the graph defaults box, you will find the 'Print in color' checkbox. Make sure that is checked.

Re: Graph axes and saving to RTFs with color

Posted: Sat Jan 12, 2013 11:02 pm
by fjoutz
Thank you for the responses.
The for obtaining color in RTF files seems to work fine.
The other issue for obtaining grids for both axes is problematic. The suggested code works fine for a single graph, but when I try to use a group with multiple graphs it does not. I can obtain a grid for the left axis, but no others.
I have attached a sample program file and workfile.
Again, I am working with version 7.2
I appreciate your help
Fred