Statalist


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

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


From   Sergiy Radyakin <[email protected]>
To   [email protected]
Subject   Re: st: RE: Problem with WMF export in Stata 11.
Date   Mon, 10 Aug 2009 15:08:20 -0400

Hi, Martin,
it is not the same. Stata does not understand extensions ".1.emf" and
will require option -as- to be specified.
Instead of specifying -as-, I replaced the extra dots with underscores.
The code was supposed to run in different Stata versions.
Best regards, Sergiy

On Mon, Aug 10, 2009 at 2:49 PM, Martin Weiss<[email protected]> wrote:
>
> <>
>
>
> 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/
>

*
*   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