code: def diff(self, plot):
          
          if self.fig == 'auto':
              figure_format = self.params('fig').objects[0]
          else:
              figure_format = self.fig
          return self.html(plot, figure_format)
docs: Returns the latest plot data to update an existing plot.