Saving graphs as pdf

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

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

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

Re: Saving graphs as pdf

Postby EViews Gareth » Mon Apr 27, 2026 7:33 am

Line 27 of the program:

Code: Select all

ps graphs
What's that?

Dag Kolsrud
Posts: 19
Joined: Mon Jul 17, 2017 3:49 am

Re: Saving graphs as pdf

Postby Dag Kolsrud » Tue Apr 28, 2026 7:04 am

"ps graphs" selects a quarterly page in the workfile "data_xchange_housing_oil" which contains the figures and the spool. When issuing a line command from that page the result gets stored there, but the graphs of series on other pages with higher frequencies, e.g. the page "w" with weekly frequency, do not get dashed. If you uncomment the "ps w" command on line 63, the graphs get dashed. Why does the different frequencies decide whether a series get dashed or not?

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

Re: Saving graphs as pdf

Postby EViews Gareth » Tue Apr 28, 2026 8:33 am

Sorry, I'm getting quite lost.

As far as I can tell, the issue you are experiencing is that you have a graph object that when saved to disk as a PDF, the dashed lines don't appear.

Do you have a workfile we can use that has such a graph object?

Dag Kolsrud
Posts: 19
Joined: Mon Jul 17, 2017 3:49 am

Re: Saving graphs as pdf

Postby Dag Kolsrud » Mon May 04, 2026 12:36 am

My email on April 27had 2 attachments; a workfile and a program. The program produces 3 figures, which are collected in a spool, on a quarterly page called 'grpahs'. In Statistics Norway we experience 2 problems:

1) Graph lines in the figure code with the "dash" attribute do not always appear dashed in EViews. Sometimes they are graphed solid rather than dashed despite the dashed attribute. The dash attribute does not seem to work when variables on a page with higher frequency are graphed from a page with lower frequency. That is what my email from April 27 tries to explain.

2) Another problem is that when graphed lines appear correctly as dashed in EViews, they get saved to file in the pdf format as solid lines in EViews 14, but correctly as dashed lines in EViews 12 using the printer driver "Microsoft Print to PDF.

I appologize for combining rather than clearly separating the two problems. However, I still hope you can understand and investigate the problem from the previously attached files.

Sincerely, Dag

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

Re: Saving graphs as pdf

Postby EViews Gareth » Mon May 04, 2026 9:42 am

I think both issues are due to opacity - opacity doesn't work well with dashed lines. If you turn off opacity for all the lines in the chart, it should behave better.

Dag Kolsrud
Posts: 19
Joined: Mon Jul 17, 2017 3:49 am

Re: Saving graphs as pdf

Postby Dag Kolsrud » Thu May 07, 2026 1:59 am

Opacity options have been tried before and did not help, see communications in June 2024 with EViews Steve.

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

Re: Saving graphs as pdf

Postby EViews Gareth » Thu May 07, 2026 7:53 am

Sorry, opacity and anti-aliasing.
Attachments
dashes.gif
dashes.gif (5.75 MiB) Viewed 341 times


Return to “Data Manipulation”

Who is online

Users browsing this forum: No registered users and 2 guests