On 7/5/07, Tom Denniston <[EMAIL PROTECTED]> wrote: > Oops that was the TKAgg profile results. These are the WxAgg results > attached. Sorry about that. > > On 7/5/07, Tom Denniston <[EMAIL PROTECTED]> wrote: > > I've been trying to profile and speed up an app that uses matplotlib. > > I tried to write an example using simple pylab commands to reproduce > > the slowness. What I found was I could get a huge speedup just > > avoiding unnecessary redraws. I'm down now to passable behavior. > > Plotting 6 series in two windows takes about one and a quarter > > seconds. I would like to improve this further, however, if it is > > possible which is why I am posting.
What is your hold state? In your test function you may want to make sure you are not repeatedly adding data to the same figure. Eg p1.plot(something, hold=False) repeated calls to plot where hold is True can cause significant slowing... In mpl hold is True by default and in matlab it is False by default but you can set the default as an Axes property or in your rc file. JDH ------------------------------------------------------------------------- This SF.net email is sponsored by DB2 Express Download DB2 Express C - the FREE version of DB2 express and take control of your XML. No limits. Just data. Click to get it now. http://sourceforge.net/powerbar/db2/ _______________________________________________ Matplotlib-users mailing list Matplotlib-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/matplotlib-users