Re: [matplotlib-devel] Matplotlib Qt4Agg backend ignores 'resize_event'

2012-08-10 Thread Stefan H.
Hi Ludwig, You are right, it didn't work on the MacOSX backend either. I didn't notice since the backend doesn't support blitting, so I never tried it. In any case, it is exactly the same problem as in Qt4Agg, with exactly the same fix: In lib/matplotlib/backends/backend_macosx.py, add the last l

Re: [matplotlib-devel] Matplotlib Qt4Agg backend ignores 'resize_event'

2012-08-01 Thread Ludwig Schwardt
Hi, I've noticed the same problem on the MacOSX backend recently (TkAgg works fine on OS X though). I assumed that it would be more than a one-line fix, therefore I did not look into it further. It would be great if your solution worked for MacOSX too! Regards, Ludwig ---

Re: [matplotlib-devel] Matplotlib Qt4Agg backend ignores 'resize_event'

2012-07-29 Thread Stefan H.
Collin, My problem is not with the actual "resize" functionality, which works fine, but with attaching a callback to a resize_event ("say_hello" in my example). Specifically, I have a figure that uses blitting, i.e., saves the background and only updates some artists as a function of events in an

[matplotlib-devel] Matplotlib Qt4Agg backend ignores 'resize_event'

2012-07-25 Thread Stefan H.
Hello, It appears that the Qt4Agg backend ignores any user defined 'resize_event'. This program reproduces the issue (I am using the development version of matplotlib from github): import matplotlib matplotlib.use('Qt4Agg') import matplotlib.pyplot as plt def say_hello(event): print "Hello"