def METHOD_NAME(self, *args):
    directory = os.path.expanduser(mpl.rcParams['savefig.directory'])
    filename = _macosx.choose_save_file('Save the figure',
                                        directory,
                                        self.canvas.get_default_filename())
    if filename is None:  # Cancel
        return
    # Save dir for next time, unless empty str (which means use cwd).
    if mpl.rcParams['savefig.directory']:
        mpl.rcParams['savefig.directory'] = os.path.dirname(filename)
    self.canvas.figure.savefig(filename)