Prev: pdep use
Next: Change a class Property
From: Maxx Chatsko on 23 Jul 2010 08:36 Hello all, I have a gui that plots up to 3 spectral plots in seperate figures based upon user selection when a pushbutton is pushed. I want to close any open plot figures when the user pushes the pushbutton on the main gui figure. The plot figures are named using sprintf and I can't figure out how to close them. I create the figures using the figure command. -Do I use close('name') or close(handle) and how? Thanks Maxx Need more details? Ask away
From: Robert on 23 Jul 2010 08:45 "Maxx Chatsko" <chatskom(a)chemimage.com> wrote in message <i2c2bl$5v$1(a)fred.mathworks.com>... > Hello all, > I have a gui that plots up to 3 spectral plots in seperate figures based upon user selection when a pushbutton is pushed. I want to close any open plot figures when the user pushes the pushbutton on the main gui figure. The plot figures are named using sprintf and I can't figure out how to close them. I create the figures using the figure command. > -Do I use close('name') or close(handle) and how? > Thanks > Maxx > Need more details? Ask away "close all" will close all open figures, also if your stored the handles to the figures you can "close ( handle)"
From: Maxx Chatsko on 23 Jul 2010 09:04 "Robert " <rcumming(a)matpi.com> > "close all" will close all open figures, > also if your stored the handles to the figures you can "close ( handle)" I need the main gui figure to still be open so I cannot do that.
From: Walter Roberson on 23 Jul 2010 09:32 Maxx Chatsko wrote: > I have a gui that plots up to 3 spectral plots in seperate figures > based upon user selection when a pushbutton is pushed. I want to close > any open plot figures when the user pushes the pushbutton on the main > gui figure. The plot figures are named using sprintf and I can't figure > out how to close them. I create the figures using the figure command. > -Do I use close('name') or close(handle) and how? Set the close request function for your main gui to ignore the close attempt, and then use close('all') to close the other figures.
From: Maxx Chatsko on 23 Jul 2010 09:50 Walter Roberson <roberson(a)hushmail.com> > Set the close request function for your main gui to ignore the close > attempt, and then use close('all') to close the other figures. ......'handleVisibility','off') ?
|
Pages: 1 Prev: pdep use Next: Change a class Property |