Dear Stata users,
I’d like to make graphs using a loop and pause after each graph, then advance to the next graph using the keyboard or the mouse.
I’m not sure why the following code doesn’t work; what happens is that after each graph I see -more- in the results window but Stata doesn’t pause and the graphs are made one after the other with no break.
Isn’t -more- supposed to pause the program after each graph?
sysuse auto
* graphs
set more on
foreach var of varlist price mpg headroom trunk weight length {
graph box `var'
more
}
Thank you.
Luca
PS I’m running Stata 14.1 on Windows 7 (Stata installed on the University server)
I’d like to make graphs using a loop and pause after each graph, then advance to the next graph using the keyboard or the mouse.
I’m not sure why the following code doesn’t work; what happens is that after each graph I see -more- in the results window but Stata doesn’t pause and the graphs are made one after the other with no break.
Isn’t -more- supposed to pause the program after each graph?
sysuse auto
* graphs
set more on
foreach var of varlist price mpg headroom trunk weight length {
graph box `var'
more
}
Thank you.
Luca
PS I’m running Stata 14.1 on Windows 7 (Stata installed on the University server)
Comment