Statalist


[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

st: RE: Problem with WMF export in Stata 11.


From   "Martin Weiss" <[email protected]>
To   <[email protected]>
Subject   st: RE: Problem with WMF export in Stata 11.
Date   Mon, 10 Aug 2009 20:49:16 +0200

<>


Apart from the main issue: What is the line with the -local- good for? You
do get the same result with

***
graph export "auto`c(version)'.emf", replace 
***



HTH
Martin


-----Original Message-----
From: [email protected]
[mailto:[email protected]] On Behalf Of Sergiy Radyakin
Sent: Montag, 10. August 2009 19:09
To: [email protected]
Subject: st: Problem with WMF export in Stata 11.

Dear Stata users and developers,

there seems to be a problem with the export to WMF in Stata 11, which
causes incorrect positioning of labels.

Here is the trivial code illustrating the problem.

clear
set memory 1m
sysuse auto
local version = subinstr(`"`c(version)'"',".","_",.)
twoway scatter price weight
graph export "auto`version'.emf", replace
graph export "auto`version'.wmf", replace
graph export "auto`version'.png", replace

When run in Stata 10 the WMF output corresponds to EMF output.
When run in Stata 11 the labels in WMF are misplaced. Depending on the
viewer you may or may not see the labels at all (in standard Windows
picture viewer they are not shown, in IrfanView they are faaar away
above the main image).

If deciding which graphic format is better for export in Stata 11, it
seems that EMF is the best candidate: PNG and TIFF currently don't
work with options -width- and -height-, and WMF because of the labels.
Looking forwards to get the first update for Stata 11 :)

Best regards,
     Sergiy Radyakin
*
*   For searches and help try:
*   http://www.stata.com/help.cgi?search
*   http://www.stata.com/support/statalist/faq
*   http://www.ats.ucla.edu/stat/stata/


*
*   For searches and help try:
*   http://www.stata.com/help.cgi?search
*   http://www.stata.com/support/statalist/faq
*   http://www.ats.ucla.edu/stat/stata/



© Copyright 1996–2024 StataCorp LLC   |   Terms of use   |   Privacy   |   Contact us   |   What's new   |   Site index