code: def _trigger_refresh(self, key):
          "Triggers update to a plot on a refresh event"
          # Update if not top-level, batched or an ElementPlot
          if not self.top_level or isinstance(self, GenericElementPlot):
              self.update(keyf _trigger_refresh(self, key):
          "Triggers update to a plot on a refresh event"
          # Update if not top-level, batched or an ElementPlot
          if not self.top_level or isinstance(self, GenericElementPlot):
              self.update(key)
docs: Triggers update to a plot on a refresh event