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]

RE: st: Producing graphs "quietly" and quickly


From   tashi lama <[email protected]>
To   <[email protected]>
Subject   RE: st: Producing graphs "quietly" and quickly
Date   Tue, 17 Apr 2012 16:00:12 +0000

I was under the impression that the graph window has to open to export the graph. I had tried in the past using nodraw option to suppress the graph and using export. I didn't work. But guess what, set graphics off seems to work at least for .eps

 

Tashi
 


> Subject: Re: st: Producing graphs "quietly" and quickly
> From: [email protected]
> Date: Tue, 17 Apr 2012 09:08:48 -0400
> To: [email protected]
> 
> It seems to depend on the output format:
> 
> . sysuse auto, clear
> (1978 Automobile Data)
> 
> . set graphics off
> 
> . scatter price mpg
> 
> . graph export test.png
> no Graph window open
> r(601);
> 
> . graph export test.eps
> (file test.eps written in EPS format)
> 
> I'm using Stata/IC 12.1 for Mac.
> 
> Phil
> 
> On 17/04/2012, at 9:01 AM, Eric Booth wrote:
> 
> > <>
> > 
> > Use -set graphics off- This still produces an exportable graph:
> > 
> > 
> > ****
> > sysuse auto, clear
> > set graphics on
> > gr bar rep78, name(g1, replace)
> > graph export "g1.eps", as(eps) replace
> > 
> > **g2.eps is created without drawing the graph:
> > set graphics off
> > gr bar rep78, name(g2, replace)
> > graph export "g2.eps", as(eps) replace
> > 
> > 
> > set graphics on
> > ****
> > I'm using Stata 12 MP on Mac OSX - I have no idea if this works on other versions/systems.
> > 
> > - Eric
> > __
> > Eric A. Booth
> > Public Policy Research Institute 
> > Texas A&M University
> > [email protected]
> > +979.845.6754
> > 
> > On Apr 17, 2012, at 7:47 AM, Michael Boehm wrote:
> > 
> >> Thanks Nick for this, it seems there is not really a "solution" to my
> >> query then.
> >> 
> >> Michael
> >> 
> >> On Tue, Apr 17, 2012 at 10:08 AM, Nick Cox <[email protected]> wrote:
> >>> This was covered in a recent thread starting at
> >>> 
> >>> http://www.stata.com/statalist/archive/2012-04/msg00645.html
> >>> 
> >>> subject to your defining what "produce" and "not pop up" mean exactly.
> >>> 
> >>> Nick
> >>> 
> >>> On Tue, Apr 17, 2012 at 9:51 AM, Michael Boehm <[email protected]> wrote:
> >>> 
> >>>> I have to produce a substantial number of graphs---which are automated
> >>>> in a dofile with many loops---again and again and would like to have
> >>>> them not pop up every time they are produced. Is there any command to
> >>>> do this? Maybe this could also speed up the process...?
> >>> *
> >>> * 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/
> > 
> > 
> > *
> > * 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/ 		 	   		  
*
*   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