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

st: Problem with WMF export in Stata 11.

From   Sergiy Radyakin <>
Subject   st: Problem with WMF export in Stata 11.
Date   Mon, 10 Aug 2009 13:09:29 -0400

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.

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:

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