hookeai.material_model_finder.model.material_discovery.save_figure

save_figure(figure, filename, height=3.6, format='pdf', save_dir=None, is_tight_layout=False)[source]

Save Matplotlib figure.

Parameters:
  • figure (Matplotlib Figure) – Figure.

  • filename (str) – Figure name.

  • height (float, default=3.6) – Figure height (inches).

  • format ({'pdf', 'png'}, default='pdf') – File format.

  • save_dir (str, default=None) – Directory where figure is saved. If None, then figure is saved in current working directory.

  • is_tight_layout (bool, default=False) – Automatically adjust subplots to avoid overlaps.