Pause before continuing execution
If a program produces several plots on the same window, insertion of pause() between two plots suspends execution until the key is pressed, to allow inspection of the current plot.
pause()
Useful links