UCLA Academic Technology Services HomeServicesClassesContactJobs
Search

Stata FAQ
How do I save a Stata graph as an EPS file?

The graph export command can be used in Stata to save a graph as an Encapsulated Postscript file for use in applications like LaTeX. Here is a simple example.
use http://www.ats.ucla.edu/stat/stata/notes/hsb2, clear
(highschool and beyond (200 cases))

graph twoway scatter read math
graph export mygraph.eps
(file mygraph.eps written in .eps format)
The graph export command supports a number of other graphic file formats as well, and the formats supported vary depending on whether you are using a Macintosh, Windows or Unix.  You can learn more by seeing the Stata help for graph_export.

How to cite this page

Report an error on this page

UCLA Researchers are invited to our Statistical Consulting Services
We recommend others to our list of Other Resources for Statistical Computing Help
These pages are Copyrighted (c) by UCLA Academic Technology Services


The content of this web site should not be construed as an endorsement of any particular web site, book, or software product by the University of California