Stata The Stata listserver
[Date Prev][Date Next][Thread Prev][Thread Next][Date index][Thread index]

Re: st: exporting graphs in xstata


From   glaziou@pasteur-kh.org (Philippe Glaziou)
To   statalist@hsphsun2.harvard.edu
Subject   Re: st: exporting graphs in xstata
Date   Thu, 3 Oct 2002 08:18:37 +0700

Gene Fisher <fisher@soc.umass.edu> wrote:
> I'm using stata in Linux now.  It works very well, but I don't find any
> provision for copying graphs to the clipboard or saving them to a file
> in other than gph format.  I would like to insert a graph into a Star
> Office document.  I checked the FAQ's but could find nothing.  I wonder
> how xstata users port their graphs into documents.


You may print the graph to a postscript file from xstata (menu
file | print graph, then tick print to file). The resulting postscript 
file can then be translated into encapsulated postscript for 
inclusion into your Star Office document, using ps2eps or ps2epsi. 
This tool belongs to the Ghostscript tools package and is probably 
already installed on your machine.

Another option available from both stata(console) and xstata is to 
use the translator gph2eps included in stata (type -man translategph- 
from within stata for details), to convert a gph file into encapsulated 
postscript. A -translate yourfile.gph yourfile.eps- should do the
trick. There is a logo option there, if the stata logo is not wanted.

I hope this helps,

-- 
Philippe Glaziou <glaziou@pasteur-kh.org>
Pasteur Institute of Cambodia
*
*   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–2014 StataCorp LP   |   Terms of use   |   Privacy   |   Contact us   |   What's new   |   Site index