Back in March, 2007, a user asked about getting the resize_even to work. No one responded to his question. I have the same problem. I tried hooking up a method that I hoped would be called every time the graph was resized (using the UI that is displayed by a show() call).
connect('resize_event', plotutils.recalculateTimeSeriesXLabels) However, my method is never called, even when I maximize the window. Here is his email as well: Trying to get resize event to work, but either I don't understand the definition of when resize_event should work, or it's broken. for example ======================= from matplotlib import pylab , numerix def GotResizeEvent( event ): print 'Resize event detected' def GotDrawEvent( event ): print 'Draw event detected' X = range(0, 200) Y = pylab.sin(X) r = pylab.plot(X,Y) pylab.connect( 'resize_event', GotResizeEvent) pylab.connect( 'draw_event', GotDrawEvent) pylab.show() ========================= Will only get draw_events as I zoom in on the data, never a resize event? I also get draw_events as I resize the window itself, but never a resize_event. So my question, .. what user activity triggers a resize event? -- Jon Froehlich PhD Student Computer Science and Engineering University of Washington http://www.cs.washington.edu/homes/jfroehli ------------------------------------------------------------------------- This SF.Net email is sponsored by the Moblin Your Move Developer's challenge Build the coolest Linux based applications with Moblin SDK & win great prizes Grand prize is a trip for two to an Open Source event anywhere in the world http://moblin-contest.org/redirect.php?banner_id=100&url=/ _______________________________________________ Matplotlib-users mailing list Matplotlib-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/matplotlib-users