此为 Mathematica 7 文档,内容基于更早版本的 Wolfram 语言
查看最新文档(版本11.1)
Import/Export 导入/导出 格式

EPS (.eps, .epsf)

MIME types: application/postscript, application/eps, application/x-eps, image/eps, image/x-eps
EPS page description language and file format.
Commonly used in 2D vector graphics and page layout applications.
Self-contained PostScript fragment, suitable for inclusion in other documents.
EPS is an acronym derived from Encapsulated PostScript.
Plain text format.
Stores text and vector graphics using the PostScript language.
Can include fonts and embedded raster graphics.
Supports various color encodings, including monochrome, grayscale, RGB, and CMYK.
Precursor to PDF.
PostScript was introduced in 1984 by Adobe.
  • Export generally creates PostScript level 2 files, and includes certain level 3 features if appropriate.
  • Export["file.eps", expr] exports an arbitrary text string, vector graphics, Notebook or Cell expression to EPS.
  • Mathematica fonts and other nonstandard fonts are by default embedded in the exported file if necessary.
  • Export["file.eps", expr, elem] creates an EPS file by treating expr as specifying element elem.
  • The export format can be explicitly specified with the command Export["file", expr, "EPS"].
  • See the reference pages for full general information on Export.
  • In the notebook front end, Save As exports the active notebook as an EPS file.
  • Save Selection As exports the selected part of a notebook to EPS.
  • Data representation elements:
"Graphics"arbitrary 2D graphics
  • Export uses the "Graphics" element by default.
  • General options:
BackgroundAutomaticbackground color shown in transparent image regions
ImageSizeAutomaticoverall image size
ImageResolution72image resolution for rasterization in dpi
"AllowRasterization"Automaticwhether to rasterize graphics that requires advanced versions of PDF
"EmbeddedFonts"Truewhether to include nonstandard fonts
"PreviewFormat"Noneformat of the image preview to be included
  • Possible settings for "PreviewFormat" are:
Noneno embedded preview
"Interchange"device-independent preview (EPSI)
"Metafile"Windows metafile preview (WMF)
"TIFF"TIFF raster image
  • Possible settings for "AllowRasterization":
Automaticautomatically chose the most suitable rendering method
Truerasterize graphics that requires advanced versions of PDF
Falseuse vector graphics
Export vector graphics to EPS:
In[1]:=
Click for copyable input
Out[1]=
In[2]:=
Click for copyable input
Out[2]=
 
Export a function plot to EPS:
In[1]:=
Click for copyable input
In[2]:=
Click for copyable input
Out[2]=
 
When converting output containing characters to EPS, Mathematica by default includes all nonstandard fonts in the exported document:
In[1]:=
Click for copyable input
Out[1]=
 
This exports a Cell expression to EPS:
In[1]:=
Click for copyable input
Out[1]=
 
This converts a Notebook expression to EPS:
In[1]:=
Click for copyable input
Out[1]=
 
Create an EPSI file:
In[1]:=
Click for copyable input
Out[1]=