Path: news.mathworks.com!not-for-mail
From: "Kenneth Eaton" <Kenneth.dot.Eaton@cchmc.dot.org>
Newsgroups: comp.soft-sys.matlab
Subject: Re: Any way to speed up drawing of tiny patch object?
Date: Fri, 13 Jun 2008 16:03:03 +0000 (UTC)
Organization: Cincinnati Children's Hospital Research Center
Lines: 16
Message-ID: <g2u5nn$gkl$1@fred.mathworks.com>
References: <c99b0c35-4eca-4087-981d-ac5489bd7849@p25g2000hsf.googlegroups.com>  <77d1cc7e-35a5-4f8f-8baa-dde45491f432@w7g2000hsa.googlegroups.com>
Reply-To: "Kenneth Eaton" <Kenneth.dot.Eaton@cchmc.dot.org>
NNTP-Posting-Host: webapp-03-blr.mathworks.com
Content-Type: text/plain; charset="ISO-8859-1"
Content-Transfer-Encoding: 8bit
X-Trace: fred.mathworks.com 1213372983 17045 172.30.248.38 (13 Jun 2008 16:03:03 GMT)
X-Complaints-To: news@mathworks.com
NNTP-Posting-Date: Fri, 13 Jun 2008 16:03:03 +0000 (UTC)
X-Newsreader: MATLAB Central Newsreader 1165924
Xref: news.mathworks.com comp.soft-sys.matlab:473679



> So I've traced the problem to a call 
to "waitforbuttonpress", which is
> a built-in function, so I think that my optimization 
stops here (so
> long as I want to use the mouse as the tool to select the 
cells, and I
> don't see a better option).  C'est la vie.
> 
> - Chris

Have you thought of writing your own point selection 
routine using the WindowButtonFcns of the figure and the 
CurrentPoint property of the axes? You may be able to write 
a simpler, bare-bones version that runs faster.

Ken