code: def _finalise_figure(fig, **kwargs):  # pragma: no cover
      
      title = kwargs.get("title") or None
      show = kwargs.get("show") or False
      save = kwargs.get("save") or False
      savefile = kwargs.get("savefile") or "EQcorrscan_figure.png"
      return_fig = kwargs.get("return_figure") or False
      if title:
          fig.suptitle(title)
      if show:
          fig.show()
      if save:
          fig.savefig(savefile)
          print("Saved figure to {0}".format(savefile))
      if return_fig:
          return fig
      return None
docs: Internal function to wrap up a figure.
  
      Possible arguments:
      :type title: str
      :type show: bool
      :type save: bool
      :type savefile: str
      :type return_figure: bool