Statalist


[Date Prev][Date Next][Thread Prev][Thread Next][Date index][Thread index]

Re: st: problem with .png graph export in Stata 10


From   "Sebastian F. B�chte" <[email protected]>
To   [email protected]
Subject   Re: st: problem with .png graph export in Stata 10
Date   Thu, 25 Oct 2007 20:54:51 +0200

Michael

I tried the following (on my Stata 10.0/MP; last updated 15 Oct 2007):

sysuse auto
scatter mpg price
gr export png_test.png

Afterwards I used the MS Paint (Version 5.1 Build 2600; MS XP Pro
ServPack 2) to display the png. Everything looked as expected. Maybe
it is not the "png"-file that is broken but perhaps the software that
you use to display it?

Regards
Sebastian

2007/10/25, Michael Blasnik <[email protected]>:
> ..
> Thanks for the advice.  They say they have updated their Stata.  Unlike in your
> examples, the width and height options are not specified in the export command
> (no options are specified).   Do they have an impact on this problem?
>
> Thanks,
>
> Michael
>
> ----- Original Message -----
> From: "Friedrich Huebler" <[email protected]>
> To: <[email protected]>
> Sent: Thursday, October 25, 2007 11:16 AM
> Subject: Re: st: problem with .png graph export in Stata 10
>
>
> > Michael,
> >
> > I have Stata/SE 10 for Windows and cannot reproduce the behavior you observed.
> >
> > sysuse auto
> > scatter mpg weight
> > graph export test.png, width(1650) height(1200)
> > graph export test2.png, width(600) height(400)
> >
> > Is your colleague's Stata fully updated? The initial release of Stata
> > 10 had a bug in export to PNG format when the width or height options
> > were specified. This bug was fixed with the update of July 25.
> >
> > Friedrich
> >
> > On 10/25/07, Michael Blasnik <[email protected]> wrote:
> >> I have found that, in Stata 10/SE for Windows, graphs exported as .png files
> >> contain a small copy of the graph located in the upper left corner of a large
> >> black rectangle (1650 x 1200 pixels).  This behavior does not occur in Stata
> >> 9.
> >> Has anyone else noticed this?  Is there some setting to correct this or is it
> >> a
> >> bug?
> >>
> >> Michael Blasnik
> >> [email protected]
> >>
> >> p.s. The graphs were sent to me by a colleague running a do file I sent to
> >> them.
> >> I don't have a copy of Stata 10 myself to reproduce the problem, but I have
> >> the
> >> graphic files.
>
> *
> *   For searches and help try:
> *   http://www.stata.com/support/faqs/res/findit.html
> *   http://www.stata.com/support/statalist/faq
> *   http://www.ats.ucla.edu/stat/stata/
>
*
*   For searches and help try:
*   http://www.stata.com/support/faqs/res/findit.html
*   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