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 figure() instance fig, how do I actually tell
> fig.canvas.manager.frame.toolbar.save to actually point to my custom
> savefig?



w/o having anything to test handy, the first thing to try is::

 fig.canvas.manager.frame.toolbar.save = mysavefg

where mysavefig is the function you define.

JDH
------------------------------------------------------------------------------
Register Now & Save for Velocity, the Web Performance & Operations 
Conference from O'Reilly Media. Velocity features a full day of 
expert-led, hands-on workshops and two days of sessions from industry 
leaders in dedicated Performance & Operations tracks. Use code vel09scf 
and Save an extra 15% before 5/3. http://p.sf.net/sfu/velocityconf
_______________________________________________
Matplotlib-users mailing list
Matplotlib-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/matplotlib-users

Reply via email to