|
"Joerg Hackinger" <hac@rz.fh-augsburg.de> wrote in message news:g38b3i$cjs$1@fred.mathworks.com...
>I have a figure with some patches. And i change some of the
> patches in a loop (using set).
> I have to insert the drawnow, that the figure will be
> redrawn. But with drawnow, the entire figure will be redrawn.
>
> Is there a possibility to redraw only the changed patches?
>
> I thought about drawnow expose, but nothing happens with
> that function.
> The Matlab help says about drawnow expose:
> drawnow expose causes only graphics objects to refresh, if
> needed.
> But how does drawnow expose decide, which objects are needed
> to be updated?
>
The set command is keeping track of which objects need to
be updated. It isn't as simple as it might appear though. In
some cases, changing one object means that others have to
be updated. A common case is when the Axes object's
{X/Y/Z}LimMode properties are set to auto. When you
change one of the objects in the Axes, then that can cause
the limits to change which can cause all of the other objects
in the Axes to require updating.
As the other responder said, the expose option on drawnow
is just about controlling what types of events get processed
during the drawnow.
- Mike Garrity
- The MathWorks, Inc.
|