Ok, here is the code as a whole. I think it's still short enough to
ilustrate the problem. Just start it with the datafile "elips" as an
argument

http://dl.dropbox.com/u/226980/elipsometry.tar.gz

The timer shows how long each render cycle takes. The time seems to grow
with number of cycles rendered even when no more points are added (the
points are calculated with a continous rate in a background thread and are
about 300 total).

On Sun, Jan 3, 2010 at 8:16 PM, John Hunter <jdh2...@gmail.com> wrote:

> On Sun, Jan 3, 2010 at 7:02 PM, Alexander Hupfer <son...@gmail.com> wrote:
> > Thanks I got it fixed.
> > This leads to the follow up question:
> > What is the right way to keep an application responsive while the graph
> is
> > drawn?
> > Drawing a scatter plot with 300 points seems to take a while. I guess I
> need
> > to launch the drawing in another thread but don't know exactly how to do
> > this and only find examples of doing calculations in the background and
> not
> > actual widget interaction.
>
> You posted some real code and a traceback, which helped move the ball
> forward.  What we really need to see to help you though is a complete,
> free-standing example, that we can run on our machines, which exposes
> the problem.
>
> JDH
>
------------------------------------------------------------------------------
This SF.Net email is sponsored by the Verizon Developer Community
Take advantage of Verizon's best-in-class app development support
A streamlined, 14 day to market process makes app distribution fast and easy
Join now and get one step closer to millions of Verizon customers
http://p.sf.net/sfu/verizon-dev2dev 
_______________________________________________
Matplotlib-users mailing list
Matplotlib-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/matplotlib-users

Reply via email to