For Programmers: Free Programming Magazines  


Home > Archive > Matlab > February 2007 > Updating a Minimized Figure









You are viewing an archived Text-only version of the thread. To view this thread in it's original format and/or if you want to reply to this thread please [click here]

 

Author Updating a Minimized Figure
Kevin Chrencik

2007-02-28, 7:14 pm

I'm trying to update a figure that is minimized without actually
having it become the active figure on the user's screen. I'd like
the figure to remain minimized... What's the easiest way to
accomplish this?

(I've basically re-written the 'waitbar' command completely, so that
I can have multiple waitbar progress bars in the same window. When
it refreshes on each iteration, the window becomes activated on the
user's screen; even if it has been minimized - a HUGE pain...)

Thanks in advance!
Kevin
Matt

2007-02-28, 7:14 pm

Kevin Chrencik wrote:
>
>
> I'm trying to update a figure that is minimized without actually
> having it become the active figure on the user's screen. I'd like
> the figure to remain minimized... What's the easiest way to
> accomplish this?
>
> (I've basically re-written the 'waitbar' command completely, so
> that
> I can have multiple waitbar progress bars in the same window. When
> it refreshes on each iteration, the window becomes activated on the
> user's screen; even if it has been minimized - a HUGE pain...)
>
> Thanks in advance!
> Kevin


Would it perhaps be easier to turn off the figure's visibility while
the update occurs and then turn it on after the updates are finished.
You can certainly update an invisible figure
Kevin Chrencik

2007-02-28, 7:14 pm

Matt wrote:
>
>
> Kevin Chrencik wrote:
actually[color=darkred]
> like
> When
> the
>
> Would it perhaps be easier to turn off the figure's visibility
> while
> the update occurs and then turn it on after the updates are
> finished.
> You can certainly update an invisible figure



I tried the following:

<< MINIMIZED FIGURE >>
set(figure_handle,'Visible','off');
<< FIGURE UPDATES HERE >>
set(figure_handle,'Visible,'on');

but when the figure visibility is set back to 'on', the figure does
not reappear minimized, but rather restored on the screen...

Any thoughts? Thanks!
Kevin
Kevin Chrencik

2007-02-28, 7:14 pm

Kevin Chrencik wrote:
>
>
> Matt wrote:
> actually
I'd[color=darkred]
to[color=darkred]
completely,[color=darkred]
> so
window.[color=darkred]
activated[color=darkred]
> on
> pain...)
>
>
> I tried the following:
>
> << MINIMIZED FIGURE >>
> set(figure_handle,'Visible','off');
> << FIGURE UPDATES HERE >>
> set(figure_handle,'Visible,'on');
>
> but when the figure visibility is set back to 'on', the figure does
> not reappear minimized, but rather restored on the screen...
>
> Any thoughts? Thanks!
> Kevin



Just found my issue... Apparently if you use the "axes(axes_handle)"
command to activate an axes for plotting, it will activate the figure
and restore it. Just needed to update plots by specifying which axes
is the 'Parent' and it works great. Thanks for your suggestion
though!

Kevin
Sponsored Links







Also available: Server administration forum archive | Web Design forum archive | Software forum archive | Hardware reviews archive

Copyright 2008 codecomments.com