code: def update_handles(self, key, axis, element, ranges, style):
          
          self.teardown_handles()
          plot_data, plot_kwargs, axis_kwargs = self.get_data(element, ranges, style)
  
          with abbreviated_exception():
              handles = self.init_artists(axis, plot_data, plot_kwargs)
          self.handles.update(handles)
          return axis_kwargs
docs: Update the elements of the plot.