def METHOD_NAME(self):
    if self.disable:
        return
    self.disable = True
    with self.get_lock():
        self._instances.remove(self)
    # Restore toolbars
    self.mpl.rcParams['toolbar'] = self.toolbar
    # Return to non-interactive mode
    if not self.wasion:
        self.plt.ioff()
    if self.leave:
        self.display()
    else:
        self.plt.METHOD_NAME(self.fig)