Stata The Stata listserver
[Date Prev][Date Next][Thread Prev][Thread Next][Date index][Thread index]

Re: st: Graphs


From   [email protected] (Shannon Driver, StataCorp)
To   [email protected]
Subject   Re: st: Graphs
Date   Tue, 18 Feb 2003 10:55:55 -0600

Ricardo Mora-Castrillo <[email protected]> wrote:

> I have this syntax which display the graph that I want.
> 
> foreach fertmin of numlist 0 1 2 {
> foreach fertmax of numlist 0 1 2 {
> foreach percent of numlist 75 80 85 {
>    graph using g_`fertmin'_`fertmax'_`percent'
> }
> }
> }
> 
> However, once it get into the loop displays all the graphs with no stop. 
> What I need is a command like set more on, but applied to the graphs, so I 
> can see every graph on the screen the time that I need. And when a press 
> any key the next graph appears.
> 
> Do you know any tip.

You can use the -more- command after your -graph- command to get the behavior
you want.

	foreach fertmin of numlist 0 1 2 {
		foreach fertmax of numlist 0 1 2 {
			foreach percent of numlist 75 80 85 {
				graph using g_`fertmin'_`fertmax'_`percent'
				more
			}
		}
	}

For more information, type -help more-.

--Shannon Driver
  [email protected]

*
*   For searches and help try:
*   http://www.stata.com/support/faqs/res/findit.html
*   http://www.stata.com/support/statalist/faq
*   http://www.ats.ucla.edu/stat/stata/



© Copyright 1996–2024 StataCorp LLC   |   Terms of use   |   Privacy   |   Contact us   |   What's new   |   Site index