[wxPython-users] Very slow scrolling with multiple plots in window

Christopher Barker Chris.Barker at noaa.gov
Thu Apr 12 12:42:22 PDT 2007


Kevin Horton wrote:
> I'm using one big Figure, with multiple subplots.

separate figures might be better, if you only can see one or two at a 
time anyway.

> This is my fall back.  The user will also be frequently changing the 
> limits of the X-axis, so the plots will need to be redrawn quickly.

still, quick enough when a change is made is different than quick enough 
to scroll.

> I downloaded the OS X binaries at 
> http://www.pythonmac.org/packages/py25-fat/index.html
> 
> I find that wxagg is not stable with the combination of python 2.5.0, 
> wxPython 2.8.3.0 and MPL 0.90, so I am using the wx backend for the moment.

I think wxAgg might be faster. Drawing in wx has taken a hit with 2.8 on 
the Mac. You can use wxAgg if you disable the accelerator by removing:

/Library/Frameworks/Python.framework/Versions/2.5/lib/python2.5/site-packages/matplotlib/backends/_wxagg.so

Then wxAgg should work, with the pure python version. Give it a try and 
see what you think.

There's a better version for 2.8 in SVN, but it hasn't made it into a 
release yet.

-Chris

-- 
Christopher Barker, Ph.D.
Oceanographer

Emergency Response Division
NOAA/NOS/OR&R            (206) 526-6959   voice
7600 Sand Point Way NE   (206) 526-6329   fax
Seattle, WA  98115       (206) 526-6317   main reception

Chris.Barker at noaa.gov




More information about the wxpython-users mailing list