Bookmark and Share

Notice: On April 23, 2014, Statalist moved from an email list to a forum, based at statalist.org.


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

st: Problem with saving graphs


From   [email protected]
To   [email protected]
Subject   st: Problem with saving graphs
Date   Sat, 11 Sep 2010 09:07:00 -0230

I seem to be having a problem with saving my Stata 10.1 graphs using OSX
10.6.3.

I run a do file which reads:

version 10
#delimit ;
clear ;
sysuse cancer.dta ;
stset studytime, fail(died==1) ;
sts graph, saving(graphtest.png, replace) ;

The graph appears in the graph viewer but when I go to open png file I get the
message "The file "graphtest.png" could not be opened. It may be damaged or use
a file format that Preview doesn't recognize" I've tried saving the graph in
different formats and I get the same message.

The odd thing is that if I manually save the graph using the "save" icon on the
graph viewer, then I have no problem; the graph saves perfectly as a png or
whatever format I choose. I've tried saving graphics and pictures using other
applications and I had no problem, it only seems to happen using Stata.

Has anybody else had this problem? Does anyone know of a solution?

Best etc.

Matthew



=======================
Matthew Kerby
Assistant Professor
Department of Political Science
Memorial University of Newfoundland
St. John's, NL, A1C5S7, Canada
=======================




*
*   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–2018 StataCorp LLC   |   Terms of use   |   Privacy   |   Contact us   |   Site index