def show(self, block=None, warn=True):
<EOL>import inspect<EOL>try:<EOL><INDENT>callframe = inspect.currentframe().f_back<EOL><DEDENT>except AttributeError:<EOL><INDENT>pass<EOL><DEDENT>else:<EOL><INDENT>if '<STR_LIT>' in callframe.f_code.co_filename:<EOL><INDENT>block = False<EOL><DEDENT><DEDENT>super(Plot, self).show(warn=warn)<EOL>if block is None and interactive_backend():<EOL><INDENT>block = not IPYTHON<EOL><DEDENT>if block:<EOL><INDENT>backend_mod = get_backend_mod()<EOL>try:<EOL><INDENT>backend_mod.Show().mainloop()<EOL><DEDENT>except AttributeError:  <EOL><INDENT>backend_mod.show.mainloop()<EOL><DEDENT><DEDENT>
Display the current figure (if possible).

        If blocking, this method replicates the behaviour of
        :func:`matplotlib.pyplot.show()`, otherwise it just calls up to
        :meth:`~matplotlib.figure.Figure.show`.

        This method also supports repeatedly showing the same figure, even
        after closing the display window, which isn't supported by
        `pyplot.show` (AFAIK).

        Parameters
        ----------
        block : `bool`, optional
            open the figure and block until the figure is closed, otherwise
            open the figure as a detached window, default: `None`.
            If `None`, block if using an interactive backend and _not_
            inside IPython.

        warn : `bool`, optional
            print a warning if matplotlib is not running in an interactive
            backend and cannot display the figure, default: `True`.