graphorge.gnn_base_model.optimization.hydra_optimization_plots.save_figure¶
- save_figure(figure, filename, format='pdf', save_dir=None, is_tight_layout=False)[source]¶
Save Matplotlib figure.
- Parameters:
figure (Matplotlib Figure) – Figure.
filename (str) – Figure name.
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.