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 another figure. Obviously, when the user resizes the blitting figure, the background changes and the snapshot image has to be regenerated. Hence my need to attach a callback to a resize event. This works fine in other backends that support blitting, but not in Qt4Agg.
The reason why it doesn't work lies in lib/matplotlib/backends/backend_qt4.py, where the last line is missing in: def resizeEvent( self, event ): ... FigureCanvasBase.resize_event(self) I was hoping that someone could confirm that this is a bug and that adding the line is the correct fix for the problem. I was then going to file a bug report. Thanks, Stefan -- View this message in context: http://old.nabble.com/Matplotlib-Qt4Agg-backend-ignores-%27resize_event%27-tp34205981p34226500.html Sent from the matplotlib - devel mailing list archive at Nabble.com. ------------------------------------------------------------------------------ Live Security Virtual Conference Exclusive live event will cover all the ways today's security and threat landscape has changed and how IT managers can respond. Discussions will include endpoint security, mobile security and the latest in malware threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/ _______________________________________________ Matplotlib-devel mailing list Matplotlib-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/matplotlib-devel