<>
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
ebooth@ppri.tamu.edu
+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 <njcoxstata@gmail.com> 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 <michael.boehm1@gmail.com> 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/