Drexel dragonThe Math ForumDonate to the Math Forum



Search All of the Math Forum:

Views expressed in these public forums are not endorsed by Drexel University or The Math Forum.


Math Forum » Discussions » Software » comp.soft-sys.matlab

Topic: cla clearing handles from the wrong axis
Replies: 9   Last Post: Feb 25, 2013 4:01 PM

Advanced Search

Back to Topic List Back to Topic List Jump to Tree View Jump to Tree View   Messages: [ Previous | Next ]
Scott

Posts: 13
Registered: 10/31/12
Re: cla clearing handles from the wrong axis
Posted: Feb 24, 2013 3:53 PM
  Click to see the message monospaced in plain text Plain Text   Click to reply to this topic Reply

"Bruno Luong" <b.luong@fogale.findmycountry> wrote in message <kgdtjn$kb7$1@newscl01ah.mathworks.com>...
> "Scott" wrote in message <kgdsag$guq$1@newscl01ah.mathworks.com>...
>

> >
> > So what I'm not understanding then about your answer are a few things:
> >
> > Why does it only touch some of the handles of the main figure window/axis?

>
> cla() does not touch anything that _YOU_ have stored with guidata. It simply delete the children of the axes. If you have stored the handles previously, after clearing the axes, they become then invalid.
>
> MATLAB GUI don't know anything about you have stored and they are later deleted. YOu should make sure the storage is consistent with the graphics you have manipulated.
>
> Bruno


Shouldn't it only clear children of the specified axis?



Point your RSS reader here for a feed of the latest messages in this topic.

[Privacy Policy] [Terms of Use]

© Drexel University 1994-2014. All Rights Reserved.
The Math Forum is a research and educational enterprise of the Drexel University School of Education.