Graphics    

Exporting a Figure in Graphics Format

Export a figure in a graphics format to a file if you want to import it into another application, such as a word processor. You can also export it to the Windows clipboard, and paste it from there into an application. Before deciding on a graphics format, check what formats are supported by your target application and platform. See the print reference page for a complete list of supported graphics formats.

Frequently Used Graphics Formats
Format
Description
Command Line -device Parameter
BMP 8-bit color bitmab
Export a figure to the clipboard (Windows only).
-dbitmap
EMF color vector format
Export a figure to the clipboard (Windows only).
-dmeta
EPS color and black-and-white
Export line plots or simple graphs to a file.
Note. An EPS file does not display within some applications unless you add a TIFF preview image to it. See the example Exporting a Figure in EPS Format with a TIFF Preview.
-deps (black and white)
-depsc (color)
-depsc -tiff
(TIFF preview)
JPEG 24-bit
Export plots with surface lighting or transparency to a file. This format can be displayed by most Web browsers.
-djpeg
-djpegnumber
where number is the compression.
TIFF 24-bit bitmap color
Export plots with surface lighting or transparency to a file. Widely available. A good format to choose if you are not sure what formats your application supports.
-dtiff

Examples

These examples show you how to export a figure to a file using a specific graphics format, and to the clipboard:

More Information on Exporting

For further information on file formats and how to select the best one for your application, see

Other topics related to exporting are:


 Printing the Figure Exporting to a File