Re: [Matplotlib-users] overriding the save button

2009-04-28 Thread John Hunter
On Tue, Apr 28, 2009 at 8:21 AM, Thomas Robitaille thomas.robitai...@gmail.com wrote: Hi, I was wondering if it is possible to override the 'save' button in wxAgg so that once a filename has been specified in the dialog, a custom function is run instead of the default savefig? Maybe this

Re: [Matplotlib-users] overriding the save button

2009-04-28 Thread Thomas Robitaille
Hi John, Thanks for your help! I'm not sure how I should go about overriding the existing method. Say I have the following custom savefig(): def savefig(self, evt): print Hello world and a figure() instance fig, how do I actually tell fig.canvas.manager.frame.toolbar.save to actually

Re: [Matplotlib-users] overriding the save button

2009-04-28 Thread John Hunter
On Tue, Apr 28, 2009 at 10:01 PM, Thomas Robitaille thomas.robitai...@gmail.com wrote: Hi John, Thanks for your help! I'm not sure how I should go about overriding the existing method. Say I have the following custom savefig(): def savefig(self, evt): print Hello world and a