Saving Graph

For questions regarding programming in the EViews programming language.

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

amrsherif
Posts: 19
Joined: Mon Jul 23, 2018 4:34 pm

Saving Graph

Postby amrsherif » Mon Aug 27, 2018 8:54 am

I have a very basic question about saving graphs.

I'm trying to save this attached graph (called graph) as a png file.

The output i get is missing the axis numbers (see attachment called output).

Am i missing a line of code? It PDFs fine (using the print command). But i'm unable to get "graph.save(t=png,w=4.5,h=3.08) c:\output" to work properly.

I've tried changing the width and height

Thank you
Attachments
Graph.PNG
Graph.PNG (31.93 KiB) Viewed 681 times

amrsherif
Posts: 19
Joined: Mon Jul 23, 2018 4:34 pm

Re: Saving Graph

Postby amrsherif » Mon Aug 27, 2018 8:55 am

Forgot to attach the output file. Here it is
Attachments
output.PNG
output.PNG (8.58 KiB) Viewed 680 times

amrsherif
Posts: 19
Joined: Mon Jul 23, 2018 4:34 pm

Re: Saving Graph

Postby amrsherif » Mon Aug 27, 2018 10:49 am

Never mind. I tweaked the template using background(black) and that worked.

EViews Jason
EViews Developer
Posts: 717
Joined: Tue Sep 16, 2008 3:50 pm

Re: Saving Graph

Postby EViews Jason » Mon Aug 27, 2018 2:21 pm

We would still like to take a look at the problem and get it fixed. If you don't mind, please send your workfile to jason@eviews.com.

amrsherif
Posts: 19
Joined: Mon Jul 23, 2018 4:34 pm

Re: Saving Graph

Postby amrsherif » Mon Sep 03, 2018 8:28 am

Ok. Will send you the workfile (and a more detailed explanation) at some point this week, although i think the issues was with my code for the template.


Return to “Programming”

Who is online

Users browsing this forum: Baidu [Spider] and 13 guests