save_figure¶
- save_figure(location: str, key: str, figure: mpl.Figure, **kwargs: bool | str | float | list) None [source]¶
Save matplotlib figure to key at specified location.
Method will save to the S3 bucket if the location begins with the s3:// protocol, otherwise it assumes the location is a local path.
- Parameters:
location – Object location (local path or S3 bucket).
key – Object key ending in .png, .jpg, or .svg.
figure – Figure instance to save.
**kwargs – Additional parameters for saving figure. The keyword arguments are passed to matplotlib.pyplot.savefig.