Page 1 of 1

Graph is crooped to much when saving in emf-format

Posted: Wed Mar 09, 2016 9:50 am
by johansamuelsson
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 636 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

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

Posted: Wed Mar 09, 2016 11:15 am
by EViews Jason
We will look into it and get it fixed.

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

Posted: Wed Jun 29, 2016 11:33 pm
by johansamuelsson
Hi

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

(Version: Jun 28 2016 build)

Regards Johan

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

Posted: Wed Jul 06, 2016 8:39 am
by EViews Jason
Albeit slow, we are working on it

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

Posted: Mon Jul 11, 2016 1:08 pm
by EViews Jason
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?

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

Posted: Tue Jul 12, 2016 12:28 pm
by johansamuelsson
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

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

Posted: Fri Aug 12, 2016 9:08 am
by EViews Jason
Just as an update. This bug has been fixed

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

Posted: Sun Aug 14, 2016 8:48 am
by johansamuelsson



Regards Johan