The Refresh method enables and disables the refresh (drawing) of the graphics window. This method is useful if you are doing a large number of graphics updates and you do not want to see the intermediate steps.
p = PLOT(/TEST)
p.COLOR = "red"
p.FILL_BACKGROUND = 1
p.FILL_COLOR = "yellow"
p.TITLE = "My Data"
p1 = PLOT(FINDGEN(21)*10, RANDOMU(seed,21)-0.5, "g2o-", /OVERPLOT)
graphic.Refresh [, /DISABLE]
Set this keyword to 1 to disable all refreshing of the graphics window until the ::Refresh method is called again.
If this keyword is not set (or is set to 0) then the graphics window is re-drawn and refresh is turned back on if it was previously turned off.
Using IDL Graphics