exportgraphics
matlab_compat · scripts/matlab_compat/exportgraphics.m
EXPORTGRAPHICS Save a figure or axes to a file, cropped to its content.
GitLab #357
exportgraphics (obj, filename)
exportgraphics (obj, filename, Name, Value)
OBJ is a figure, axes or other container. The format comes from the
extension of FILENAME: .png .jpg .jpeg .tif .tiff .gif .pdf .eps .svg
Name-Value options: Resolution (default 150), Padding ("tight", "figure"
or a number of pixels), BackgroundColor (default "white", also "current"
and "none"), Colorspace ("rgb", "gray", "cmyk"), ContentType ("auto",
"vector", "image"), Append (true adds a frame to a .gif or a .pdf).