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 graphs in separate tabs (Windows)


From   "David Radwin" <dradwin@mprinc.com>
To   <statalist@hsphsun2.harvard.edu>
Subject   st: RE: Problem with graphs in separate tabs (Windows)
Date   Tue, 2 Apr 2013 08:57:20 -0700 (PDT)

Dirk,

You may need to use the -name- option to give each new graph window a
separate name rather than replacing the existing window. For example:

. twoway function y=x, name(graph_1)

. twoway function y=x^2, name(graph_2)

David
--
David Radwin
Senior Research Associate
MPR Associates, Inc.
2150 Shattuck Ave., Suite 800
Berkeley, CA 94704
Phone: 510-849-4942
Fax: 510-849-0794

www.mprinc.com


> -----Original Message-----
> From: owner-statalist@hsphsun2.harvard.edu [mailto:owner-
> statalist@hsphsun2.harvard.edu] On Behalf Of Dirk Enzmann
> Sent: Tuesday, April 02, 2013 8:11 AM
> To: statalist@hsphsun2.harvard.edu
> Subject: st: Problem with graphs in separate tabs (Windows)
> 
> I wrote a program which creates a series of six graphs in separate tabs
> of the graph window.
> 
> The program runs without error and it is possible to catch a glimpse of
> the graphs as they are created, but when the job is finished the graph
> window's tabs only contain the last graph.
> 
> This behavior only occurs if I start the job from the do-file editor
> using the "execute (do):" button (i.e. "doing" the complete do-file).
> If, instead, I select only a part of the syntax to produce the six
> graphs (i.e. use "execute selection (do):") the graphs are created
> without problem.
> 
> Any idea? I tried to insert -sleep 1000- between the commands which
> should create the graphs without avail.
> 
> As to further details of the syntax and to replicate the behavior: Here
> is a link to get the syntax file (the syntax contains an additional link
> to "sim_be.do" which ultimately produces the graphs):
> 
> http://www2.jura.uni-
> hamburg.de/instkrim/kriminologie/Mitarbeiter/Enzmann/Software/be_demo.do
> 
> My Stata's "about":
> 
> Stata/SE 12.1 for Windows (64-bit x86-64)
> Revision 20 Mar 2013
> 
> Dirk
> 
> ========================================
> Dr. Dirk Enzmann
> Institute of Criminal Sciences
> Dept. of Criminology
> Rothenbaumchaussee 33
> D-20148 Hamburg
> Germany
> 
> phone: +49-(0)40-42838.7498 (office)
>         +49-(0)40-42838.4591 (Mrs Billon)
> fax:   +49-(0)40-42838.2344
> email: dirk.enzmann@uni-hamburg.de
> http://www2.jura.uni-
> hamburg.de/instkrim/kriminologie/Mitarbeiter/Enzmann/Enzmann.html
> ========================================
> *
> *   For searches and help try:
> *   http://www.stata.com/help.cgi?search
> *   http://www.stata.com/support/faqs/resources/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/faqs/resources/statalist-faq/
*   http://www.ats.ucla.edu/stat/stata/


© Copyright 1996–2014 StataCorp LP   |   Terms of use   |   Privacy   |   Contact us   |   Site index