print -deps foo.eps
writes the current figure to an encapsulated PostScript file called foo.eps.
Print a graph, or save it to a file
filename defines the file name of the output file. If no filename is specified, the output is sent to the printer.
h specifies the figure handle. If no handle is specified the handle for the current figure is used.
- Set the printer name to which the graph is sent if no filename is specified.
- Specify the command for calling Ghostscript. For Unix and Windows, the defaults are 'gs' and 'gswin32c', respectively.
- Monochrome or color lines.
- Solid or dashed lines.
- Specify the orientation of the plot for printed output.
- Output device, where device is one of:
- Postscript (level 1 and 2, mono and color)
- Encapsulated postscript (level 1 and 2, mono and color)
- Generate a LaTeX (or TeX) file for labels, and eps/ps for graphics. The file produced by
epslatexstandalonecan be processed directly by LaTeX. The other formats are intended to be included in a LaTeX (or TeX) document. The
texdevice is the same as the
- Adobe Illustrator
- Microsoft Enhanced Metafile
- XFig. If this format is selected the additional options
-textnormalcan be used to control whether the special flag should be set for the text in the figure (default is
- HP plotter language
- Portable network graphics
- JPEG image
- GIF image
- Scalable vector graphics
- Portable document format
If the device is omitted, it is inferred from the file extension, or if there is no filename it is sent to the printer as postscript.
- Additional devices are supported by Ghostscript. Some examples are;
- HP LaserJet IIP
- HP LaserJet III
- HP DeskJet and DeskJet Plus
- HP DeskJet 550C
- HP PointJet
- 24-bit color PCX file format
- Portable Pixel Map file format
For a complete list, type `system ("gs -h")' to see what formats and devices are available.
When the ghostscript is sent to a printer the size is determined by the figure's "papersize" property. When the ghostscript output is sent to a file the size is determined by the figure's "paperposition" property.
- Resolution of bitmaps in pixels per inch. For both metafiles and SVG the default is the screen resolution, for other it is 150 dpi. To specify screen resolution, use "-r0".
- Forces a tight bounding box for eps-files. Since the ghostscript devices are conversion of an eps-file, this option works the those devices as well.
- Plot size in pixels for EMF, GIF, JPEG, PBM, PNG and SVG. If using the command form of the print function, you must quote the xsize,ysize option. For example, by writing
"-S640,480". The size defaults to that specified by the figure's paperposition property.
- fontname set the postscript font (for use with postscript, aifm, corel and fig). By default, 'Helvetica' is set for PS/Aifm, and 'SwitzerlandLight' for Corel. It can also be 'Times-Roman'. size is given in points. fontname is ignored for the fig device.
The filename and options can be given in any order.
Set the default print orientation. Valid values for orientation include
"tall"option sets the orientation to portait and fills the page with the plot, while leaving a 0.25in border.
If called with no arguments, return the default print orientation.