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

Christopher Barker Chris.Barker at noaa.gov
Thu Apr 12 09:28:57 PDT 2007


Kevin Horton wrote:
>>> and the new wx.lib.scolledpanel scroll very, very slowly once I put 
>>> several matplotlib plots in them.

Are you making one big Figure with lots of subplots? or putting multiple 
figure panels in one scrolled panel?

If the former, you should be able to make sure that it all gets drawn to 
one big off-screen bitmap, then scrolling should be very fast.

>>> I'm running wxPython 2.8.3.0 with python 2.5 on a 1.33 GHz G4 
>>> PowerBook running OS X 10.4.9.

How'd you get MPL to work with 2.8.3? none of the binaries I know 
support it out of the box, nor does a simple setup.py build work. In any 
case, I think only the non-accelerated code works, so that could have 
something to do with it. The non-accelerated code could be slower n 
transferring the agg buffer to wx -- so you probably want to make sure 
that that's not happening with every scroll event.

>>> I haven't put in any code yet to handle scrolling when you click the 
>>> arrows at the ends of the scrollbars,

huh? doesn't scrolledpanel take care of that for you?

>> should I just give  up on wxPython and go back to pyGTK?

Never!!

>  I could 
> bring the question up on a matplotlib list, to see if there is some 
> other way I could use it that would put less load on wxPython.

I'll bet there is. Make a small-as-you-can self contained example, and 
post it on the MPL list, I'll bet you'll get help.

-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