docs: def save_plot(fig, prefile='', postfile='', output_path='./', output_name='Figure',
                output_format='png', dpi=300, transparent=False, **_):
      """Generates a figure file in the selected directory.
  
      Args:
          fig: matplotlib figure
          prefile(str): Include before the general filename of the figure
          postfile(str): Included after the general filename of the figure
          output_path(str): Define the path to the output directory
          output_name(str): String to define the name of the output figure
          output_format(str): String to define the format of the output figure
          dpi(int): Define the DPI (Dots per Inch) of the figure
          transparent(bool): If True the saved figure will have a transparent background
      """
      if not os.path.exists(output_path):
          os.makedirs(output_path)  # Make output directory if non-exsiting
  
      output = os.path.join(output_path,
                            prefile + output_name + postfile + "." + output_format)
  
      fig.savefig(output, dpi=dpi, transparent=transparent)