Graph is crooped to much when saving in emf-format

For questions regarding programming in the EViews programming language.

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

johansamuelsson
Posts: 142
Joined: Thu Mar 03, 2011 10:07 pm
Contact:

Graph is crooped to much when saving in emf-format

Postby johansamuelsson » Wed Mar 09, 2016 9:50 am

Hi

I've some problem when i'm saving emf-files for some sizes. For example, when saving a graph in emf with the size w=8 and h=5 the scale on the right does not appear entirely, see the numbers in the circle in the pdf

g.pdf
(20.64 KiB) Downloaded 140 times

When using, for example, w=6, h=4 or w=10, h=6 it all look ok

Code: Select all

%p = @Runpath
wfcreate(a) annual 2000 2015
Series a1
Series a2
a1.adjust = 1 .. -1
a2.adjust = 1 .. -2
Group g a*
Freeze(tmp) g.mixed line(a1) line(a2)
tmp.save(t=emf, u=cm, w=8, h=5, trans) {%p}g ' problem
tmp.save(t=emf, u=cm, w=6, h=4, trans) {%p}g1 ' ok
tmp.save(t=emf, u=cm, w=10, h=6, trans) {%p}g2 ' ok


Regards Johan

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

Re: Graph is crooped to much when saving in emf-format

Postby EViews Jason » Wed Mar 09, 2016 11:15 am

We will look into it and get it fixed.

johansamuelsson
Posts: 142
Joined: Thu Mar 03, 2011 10:07 pm
Contact:

Re: Graph is crooped to much when saving in emf-format

Postby johansamuelsson » Wed Jun 29, 2016 11:33 pm

Hi

Just a follow up, this seems still be a problem. Any plans for this fix?

(Version: Jun 28 2016 build)

Regards Johan

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

Re: Graph is crooped to much when saving in emf-format

Postby EViews Jason » Wed Jul 06, 2016 8:39 am

Albeit slow, we are working on it

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

Re: Graph is crooped to much when saving in emf-format

Postby EViews Jason » Mon Jul 11, 2016 1:08 pm

Your code sample does not add the right axis.

I presume it was missing the following line:
tmp.setelem(2) axis(r)

With the line added the emf appears ok.

In your original post you attached a PDF. Did you convert the emf to a PDF file or did you create the PDF directly from EViews?

johansamuelsson
Posts: 142
Joined: Thu Mar 03, 2011 10:07 pm
Contact:

Re: Graph is crooped to much when saving in emf-format

Postby johansamuelsson » Tue Jul 12, 2016 12:28 pm

Hi Jason

In my "Graphics Default" I have "Always label both" checked (under "Axes and Scales" / "Data axis"), that's probably why I get the right axis

Byt if I unchecked "Always label both" and in my code includes

Code: Select all

tmp.setelem(2) axis(r)


or

Code: Select all

tmp.axis dual


I get the same problem. I was trying to attach the emf-files but it didn't work(?). Instead, I will email them to you

(In my original post I convert the emf to a PDF, but i don't think that's the problem)

Regards Johan

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

Re: Graph is crooped to much when saving in emf-format

Postby EViews Jason » Fri Aug 12, 2016 9:08 am

Just as an update. This bug has been fixed

johansamuelsson
Posts: 142
Joined: Thu Mar 03, 2011 10:07 pm
Contact:

Re: Graph is crooped to much when saving in emf-format

Postby johansamuelsson » Sun Aug 14, 2016 8:48 am




Regards Johan


Return to “Programming”

Who is online

Users browsing this forum: No registered users and 12 guests