Bookmark and Share

Notice: On March 31, it was announced that Statalist is moving from an email list to a forum. The old list will shut down at the end of May, and its replacement, statalist.org is already up and running.


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

Re: st: graph export png on Linux


From   Oliver Jones <ojones@wiwi.uni-bielefeld.de>
To   statalist@hsphsun2.harvard.edu
Subject   Re: st: graph export png on Linux
Date   Thu, 14 Jul 2011 14:55:29 +0200

It took me a second to figure out what this awkward sign after console should be... :-D
To infinity and back (in 25 seconds) ;-)

Yeh, I read about the possibility to send commands to my operating system.
But I completely forgot about it, because until now I never saw any use of it.
Now I find it very useful!
Thanks again.

Oliver

Am 14.07.2011 14:43, schrieb Neil Shephard:
On Thu, Jul 14, 2011 at 1:29 PM, Oliver Jones
<ojones@wiwi.uni-bielefeld.de>  wrote:
Hi Neil,
using the xstata works, but it is a very slowly (console: 25 sec vs.
xwindow: 75 sec). Exporting to eps works fine. Thanks for the advice.

Shouldn't that be console ∞ v's xstata 75 seconds if the console
doesn't actually produce the desired graph? ;-)

I think imagemagick (http://www.imagemagick.org/) may be a better
solution to get the eps to png conversion directly (see
http://www.imagemagick.org/Usage/text/#postscript ).

You may well already know this, but you can call the conversion from
eps to png from within your do-file using something like...

graph export mygraph.eps, replace
! convert mygraph.eps mygraph.png

Neil



--
Universität Bielefeld
Fakultät für Wirtschaftswissenschaften
Lehrstuhl für Ökonometrie und Statistik
- -
Bielefeld University
Faculty of Business Administration and Economics
Chair of Econometrics and Statistics
- -
Raum / room:  V9-110
Tel / phone:  +49 (0)521 106 4871
---
*
*   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–2014 StataCorp LP   |   Terms of use   |   Privacy   |   Contact us   |   Site index