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.
; Run this line of code first.
p = PLOT(/TEST)
; Disable re-draws.
; Change some properties, add another plot.
p.COLOR = "red"
p.FILL_BACKGROUND = 1
p.FILL_COLOR = "yellow"
p.TITLE = "My Data"
; Re-enable drawing and show the results.
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.
This page has no comments yet. Be the first one!