Sunday, March 14, 2010

Q. How do you close all open graphs in Igor Pro?

A. There is no default way to do this, but a clever Japanese man (or woman, i don't know) came up with the following short trick to do the job (see above). The actual text is posted in the comment section for your copying ability.

1 comment:

Jerry Ross said...

Menu "Control"
"Close All Graphs/9", CloseAllGraphs()
End
Function CloseAllGraphs()
String name
do
name = WinName(0,1) // name of the front graph
if (strlen(name) == 0)
break // all done
endif
DoWindow/K $name // Close the graph
while(1)
End