graphinglib.MultiFigure.save#
- MultiFigure.save(file_name: str, general_legend: bool = False, legend_loc: str | tuple = 'outside lower center', legend_cols: int = 1, dpi: int | None = None) None[source]#
Saves the
MultiFigureto a file.- Parameters:
- file_namestr
File name or path at which to save the figure.
- general_legendbool
Whether or not to display an overall legend for the
MultiFigurecontaining the labels of everyFigureinside it. Note that enabling this option will disable the individual legends for everyFigure. Defaults toFalse.- legend_locstr or tuple
The location of the legend in the MultiFigure. Possible placement keywords are: for vertical placement:
{"upper", "center", "lower"}, for horizontal placement:{"left", "center", "right"}. The keyword"outside"can be added to put the legend outside of the axes. Tuple contains floats relative to the plot size;(1, 1)is equivalent to the upper right corner. Defaults to"outside lower center".- legend_colsint
Number of colums in which to arrange the legend items. Defaults to 1.
- dpiint, optional
The resolution of the saved MultiFigure. Only used for raster formats (e.g. PNG, JPG, etc.). Default depends on the
figure_styleconfiguration.