def METHOD_NAME(self, gui, shellwidget_id=None):
    """Update matplotlib interactive."""
    if shellwidget_id is None:
        shellwidget_id = self._current_id
        if shellwidget_id is None:
            return
    if shellwidget_id in self._shellwidget_dict:
        self._shellwidget_dict[shellwidget_id]["gui"] = gui
        if shellwidget_id == self._current_id:
            self.update(gui)