coco_pipe.viz.save_figure#

coco_pipe.viz.save_figure(fig, path, *, dpi=300, facecolor='white', bbox_inches='tight')#

Save a Matplotlib figure with coco_pipe defaults.

Parameters:
  • fig – Matplotlib figure object to save.

  • path (str) – Output path accepted by Figure.savefig.

  • dpi (int) – Output resolution in dots per inch.

  • facecolor (str) – Figure background color.

  • bbox_inches (str) – Bounding-box mode passed to Figure.savefig.

Return type:

None