code: def show(self, block=None, warn=True):
          
          # this method tries to reproduce the functionality of pyplot.show,
          # mainly for user convenience. However, as of matplotlib-3.0.0,
          # pyplot.show() ends up calling _back_ to Plot.show(),
          # so we have to be careful not to end up in a recursive loop
          #
          # Developer note: if we ever make it pinning to matplotlib >=3.0.0
          #                 this method can likely be completely removed
          #
          import inspect
          try:
              callframe = inspect.currentframe().f_back
          except AttributeError:
              pass
          else:
              if 'matplotlib' in callframe.f_code.co_filename:
                  block = False
  
          # render
          super(Plot, self).show(warn=warn)
  
          # don't block on ipython with interactive backends
          if block is None and interactive_backend():
              block = not IPYTHON
  
          # block in GUI loop (stolen from mpl.backend_bases._Backend.show)
          if block:
              backend_mod = get_backend_mod()
              try:
                  backend_mod.Show().mainloop()
              except AttributeError:  # matplotlib < 2.1.0
                  backend_mod.show.mainloop()
docs: 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`.