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: RE: Problem with saving graphs


From   "Martin Weiss" <martin.weiss1@gmx.de>
To   <statalist@hsphsun2.harvard.edu>
Subject   st: RE: Problem with saving graphs
Date   Sat, 11 Sep 2010 15:32:34 +0200

<>

To export graphs, see -help graph_export-. 

The statement in the help for -help saving_option- that 

"If filename is specified without an extension, .gph will be assumed."

may have misled you into thinking that you could just give it a different
extension and it would export for you...


HTH
Martin

-----Original Message-----
From: owner-statalist@hsphsun2.harvard.edu
[mailto:owner-statalist@hsphsun2.harvard.edu] On Behalf Of kerbym@mun.ca
Sent: Samstag, 11. September 2010 13:37
To: statalist@hsphsun2.harvard.edu
Subject: st: Problem with saving graphs

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/

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