name (Optional[str]) – Name for the file (without extension; default is ‘image’).
format (Optional[str]) – File format (default ‘png’).
close (Optional[bool]) – Close the figure after writing to the image. By default, this is
True when in an inline context (Jupyter notebook), False
otherwise).