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 on April 23, 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   Neil Shephard <nshephard@gmail.com>
To   statalist@hsphsun2.harvard.edu
Subject   Re: st: graph export png on Linux
Date   Thu, 14 Jul 2011 12:53:14 +0100

On Thu, Jul 14, 2011 at 12:38 PM, Oliver Jones
<ojones@wiwi.uni-bielefeld.de> wrote:
> Hi everyone,
>
> I have trouble exporting a graph to a png when runing a do-file on
> the Liunx console. This is what I type and the error message I get
>
> graph export mygraph.png, replace
> translator Graph2png not found
> r(111);
>
>
> This problem was mentioned on the list 7 years ago.
> See the following post:
>
> http://www.stata.com/statalist/archive/2004-03/msg00600.html
>
> The manual entry for -graph export- seem to remain unchanged.
> Is there a solution for this problem?

Don't use the console version instead run your script through xstata perhaps?

If its on a remote machine and you're ssh-ing in then it might be
possible to set up X11 forwarding to run xstata, but how you do this
would be heavily dependent on the system you are connecting from (if
its another Linux machine and the server with stata has xorg installed
then using the '-X' flag to 'ssh -X yourusername@target.server'
enables X11 forwarding)

Alternatively you might want to try exporting to Encapsulated
postscript from the console version and then converting eps to png
using an external system tool (if its installed) such as imagemagick
as described at http://www.cs.wisc.edu/~ghost/gsview/epstool.htm

Neil


-- 
“Truth in science can be defined as the working hypothesis best suited
to open the way to the next better one.” - Konrad Lorenz

Email - nshephard@gmail.com
Website - http://kimura.no-ip.org/
Photos - http://www.flickr.com/photos/slackline/

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