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 line to
the "resize()" method of class "FigureCanvasMac":
def resize(self, width, height):
self.renderer.set_width_height(width, height)
dpi = self.figure.dpi
width /= dpi
height /= dpi
self.figure.set_size_inches(width, height)
FigureCanvasBase.resize_event(self)
Then it works.
Cheers,
Stefan
--
View this message in context: http://matplotlib.1069221.n5.nabble.com/Matplotlib-Qt4Agg-backend-ignores-resize-event-tp29298p38468.html
Sent from the matplotlib - devel mailing list archive at Nabble.com.
|