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]

st: Problem with saving graphs


From   kerbym@mun.ca
To   statalist@hsphsun2.harvard.edu
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–2014 StataCorp LP   |   Terms of use   |   Privacy   |   Contact us   |   Site index