I've got a series of subplots in a matplotlib.FigureCanvas instance which is embedded in a gtk viewport.  Everything seems to work correctly when I start the application - i.e. the series of subplots are displayed.  But, I need to be able to interactively change the axis settings by clicking on GTK buttons.  I have not yet figured out how to make the subplots redraw after changing the axis settings.

Based on the dynamic_image_gtkagg.py example, I have done the following (code not complete here):
f = Figure(figsize=(5,4), dpi=100)
canvas = FigureCanvas(f)
manager = pylab.get_current_fig_manager()

and later, when I need to redraw the subplots:

manager.canvas.draw()

But, although I have confirmed that the axis settings are changed, the subplots are not redrawn using the new settings.

Any hints would be greatly appreciated.

Kevin Horton
Ottawa, Canada


-------------------------------------------------------------------------
Using Tomcat but need to do more? Need to support web services, security?
Get stuff done quickly with pre-integrated technology to make your job easier
Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642
_______________________________________________
Matplotlib-users mailing list
Matplotlib-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/matplotlib-users

Reply via email to