print
plot · scripts/plot/util/print.m
print (filename, "-dFORMAT")
print (fig, filename, "-dFORMAT", "-rN")
print ("-dFORMAT", filename)
print
Render a figure to a file, or to the default printer when no file
name is given. Arguments, in any order: a figure handle (also as
"-fHANDLE"), a file name, "-dFORMAT" (png, jpeg, jpg, gif, svg, pdf,
eps, epsc, ps, psc, tiff, tiffn, bmp), "-rRESOLUTION" (dots per inch
of a bitmap; 150 when not given, -r0 the screen resolution),
"-PPRINTER" and the flags
-painters -opengl -zbuffer -noui -loose -tight -append -color -mono
-portrait -landscape -bestfit -fillpage. For PDF (and saveas pdf),
the page MediaBox follows the figure PaperSize / PaperOrientation
(and PaperUnits); -portrait/-landscape set PaperOrientation for that
print; -fillpage / -bestfit scale the figure onto the page with 0.25
inch margins (bestfit keeps the figure aspect ratio).
Without a format the file extension decides. The current figure is
used unless one is given.