Graphics | ![]() ![]() |
Exporting a Figure to a File in a Specific Graphics Format
Export a figure to a graphics-format file when you want to import it at a later time into another application such as a word processor.
From the Windows or UNIX Menus
From the Command Line
From the command line, you must specify the graphics format as an option. See Frequently Used Graphics Formats. See the print
reference page for a complete list of graphics formats and their corresponding option strings.
This example exports a figure to an EPS color file, myfigure.eps
, in your current directory.
print -depsc myfigure
This example exports Figure No. 2 at a resolution of 300dpi to a 24-bit JPEG file, myfigure.jpg
.
print -djpeg -f2 -r300 myfigure
This example exports a figure at screen size to a 24-bit TIFF file, myfigure.tif
.
set(gcf,'PaperPositionMode','auto') % Use screen size print -dtiff myfigure
![]() | Appending a Figure to a PostScript File | Exporting a Figure in EPS Format with a TIFF Preview | ![]() |