neurom.view.common.save_plot

neurom.view.common.save_plot(fig, prefile='', postfile='', output_path='./', output_name='Figure', output_format='png', dpi=300, transparent=False, **_)[source]

Generates a figure file in the selected directory.

Parameters:
  • 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