comp.lang.idl-pvwave archive
Messages from Usenet group comp.lang.idl-pvwave, compiled by Paulo Penteado

Home » Public Forums » archive » Programmatically close all function graphics windows
Show: Today's Messages :: Show Polls :: Message Navigator
E-mail to friend 
Return to the default flat view Create a new topic Submit Reply
Programmatically close all function graphics windows [message #93576] Thu, 25 August 2016 07:50 Go to previous message
wlandsman is currently offline  wlandsman
Messages: 743
Registered: June 2000
Senior Member
Is there a way to programmatically close all function graphics windows (as opposed to clicking the close button). In direct graphics the following code will do this

Device,window_state = w ;Get a list of all windows
g = where(w,/null) ;Which ones a open?
for each win,g do wdelete,win ;Delete the open windows

In function graphics, if you have the all the plot reference objects, say p1, p2, p3 then you can close the windows with p1.close, p2.close,p3.close But what if you haven't saved the plot reference objects?


Thanks, -Wayne
[Message index]
 
Read Message
Read Message
Read Message
Previous Topic: XYOUTS and ORIENTATION keyword: use negative values to anchor on end of string
Next Topic: installing IDL 8.5.1 on Ubuntu 16.04

-=] Back to Top [=-
[ Syndicate this forum (XML) ] [ RSS ] [ PDF ]

Current Time: Wed Oct 08 13:47:05 PDT 2025

Total time taken to generate the page: 0.00359 seconds