def METHOD_NAME(self, image, mime_type, shellwidget):
    """
    Show figure in Plots plugin.
    This shows the figure in the figure browser associated with the given
    shellwidget. The shellwidget is activated and the Plots plugin and the
    window containing the Plots plugin are both raised so that the user
    will see the figure.
    Parameters
    ----------
    image: bytes
        The image to show. SVG images should be encoded so that the type
        of this parameter is `bytes`, not `str`.
    mime_type: str
        The image's mime type.
    shellwidget: ShellWidget
        The shellwidget associated with the figure.
    """
    ipython_console = self.get_plugin(Plugins.IPythonConsole)
    if ipython_console:
        ipython_console.set_current_shellwidget(shellwidget)
    plots = self.get_plugin(Plugins.Plots)
    if plots:
        if mime_type == 'image/svg+xml':
            image = image.decode()
        plots.add_plot(image, mime_type, shellwidget)