Welcome to the Exelis VIS product documentation center! Here you will find reference guides, help documents, and product libraries. Discover the products including ENVI, IDL, and ENVI LiDAR, and solutions developed by Exelis VIS at www.exelisvis.com.


exelisvis.com / Docs Center / Using IDL / Graphics / Graphics Methods / Close Method

Close Method

Close Method

Close Method


The Close method destroys the graphic window and all of the contained graphics and annotations.

Note: After this method is called, all references to the window object and the contained graphics objects will be invalid, and should not be used.

Example


plot.Close

Syntax


graphic.Close

Arguments


None

Keywords


None

Version History


8.0

Introduced

See Also


Erase Method, GETWINDOWS, WINDOW



Comments


Mark Piper
If you have several Graphics windows open, and have their references, delete them all with a FOREACH loop:

p = plot(/test, 'r')
q = plot(/test, 'g')
r = plot(/test, 'b')
foreach i, [p,q,r] do i.close
2nd October 2012 2:27pm
Gordon Farquharson
To close all open windows, one can do
foreach window, getwindows() do window.close
13th April 2013 3:33pm
Page 1 of 1  (2 comments)

© 2013 Exelis Visual Information Solutions