code: def save_current_figure_as(self):
          
          if self.current_thumbnail is not None:
              self.save_figure_as(self.current_thumbnail.canvas.fig,
                                  self.current_thumbnail.canvas.fmt)
docs: Save the currently selected figure.