Path: news.mathworks.com!newsfeed-00.mathworks.com!panix!bloom-beacon.mit.edu!senator-bedfellow.mit.edu!dreaderd!not-for-mail
From: Arthur G <gorramfreak+news@gmail.com>
Newsgroups: comp.soft-sys.matlab
Date: Tue, 11 Mar 2008 15:00:42 -0400
Message-ID: <47d6d6db$0$308$b45e6eb0@senator-bedfellow.mit.edu>
References: <fr6kk2$jdb$1@fred.mathworks.com>
MIME-Version: 1.0
Content-Type: text/plain; charset=ISO-8859-1; format=flowed
Content-Transfer-Encoding: 8bit
Subject: Re: Figure doesn't display until code has finished
User-Agent: Unison/1.8
Lines: 21
NNTP-Posting-Host: 18.56.7.23
X-Trace: 1205262043 senator-bedfellow.mit.edu 308 18.56.7.23
Xref: news.mathworks.com comp.soft-sys.matlab:456633



On 2008-03-11 14:56:02 -0400, "David Doria" <daviddoria@gmail.com> said:

> I have this setup:
> 
> for xxx
>    big calculuation
>    plot result
> end
> 
> However, I dont see anything display until the very end of
> the for loop, at which time I see only the results of the
> last iteration.
> 
> Is there a way to say "Force plot to display now"?
> 
> Thanks,
> 
> Dave

Use drawnow to force an update of figures.