PostScript
MATLAB has several built-in drivers for generating PostScript output. When you select a PostScript driver, you can choose among these options:
For example, if you want to create a Level 2 color Encapsulated Postscript file, use the -depsc2 switch.
Level 1 or Level 2
Level 2 PostScript files generally are smaller and render more quickly than Level 1 files, so if your printer supports Level 2 PostScript, you should use one of the Level 2 drivers. If your printer does not support Level 2, or if you're not sure, use a Level 1 driver. Level 1 PostScript will produce good results on a Level 2 printer, but Level 2 PostScript will not print properly on a Level 1 printer.
Black and White or Color
If you are using a color printer, you should select a color driver. If you are using a black and white printer, you can use either a color driver or a black and white driver; however, a black and white driver will produce smaller output files and will render lines and text better. (Note that black and white drivers produce grayscale output. You do not need to use a color driver to produce different shades of gray.)
PostScript or Encapsulated PostScript
The type of PostScript device you select depends on whether you want to print the file directly or import it into another application (such as a word processing program). If you want to send the output directly to a printer, or save it to a file and then send that file to the printer, use a regular PostScript driver. If you want to import the output into another application, use an Encapsulated PostScript (EPS) driver.
If you select a regular PostScript driver, you can provide a filename (in which case MATLAB creates an output file but does not send it to the printer) or you can omit the filename (in which case MATLAB sends the output to the printer and deletes the temporary file it creates).
If you select an EPS driver, MATLAB always creates a file; MATLAB does not print EPS directly. If you do not specify a filename, MATLAB creates a file named after the figure window used to create the file. For example, if the current figure window is titled "Figure 2," and you enter this command:
print -deps
MATLAB displays this message:
Encapsulated PostScript files cannot be sent to the printer.
File saved to disk under name 'figure2.eps'
[ Previous | Help Desk | Next ]