|
SOLUTIONS
|
MATHEMATICA IMPORT/EXPORT FORMAT
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.
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.
- Import and Export generally create PostScript level 2 files, and include certain level 3 features if appropriate.
Import and ExportImport and Export
- Import["file.eps"] imports an EPS file, returning its content as graphics.
- 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.
- Import["file.eps"] converts an EPS file to Mathematica vector graphics.
- Import["file.eps", "Plaintext"] gives a plain text version of an EPS file.
- 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"].
- Import["file.eps", elem] imports the specified element from an EPS file.
- Import["file.eps", {elem, suba, subb, ...}] imports a subelement.
- Import["file.eps", {{elem1, elem2, ...}}] imports multiple elements.
- The import format can be specified with Import["file", "EPS"] or Import["file", {"EPS", elem, ...}].
- Export["file.eps", expr, elem] creates an EPS file by treating expr as specifying element elem.
- Export["file.eps", {expr1, expr2, ...}, {{elem1, elem2, ...}}] treats each
as specifying the corresponding
. - Export["file.eps", expr, opt1->val1, ...] exports expr with the specified option elements taken to have the specified values.
- Export["file.eps", {elem1->expr1, elem2->expr2, ...}, "Rules"] uses rules to specify the elements to be exported.
- See the reference pages for full general information on Export.
- ExportString supports the EPS format.
OptionsOptions
- General options:
-
Background Automatic background color shown in transparent image regions ImageSize Automatic overall image size ImageResolution 72 image resolution for rasterization in dpi - Advanced Export options:
-
"AllowRasterization" Automatic whether to rasterize graphics that require advanced versions of PDF "EmbeddedFonts" True whether to include nonstandard fonts "PreviewFormat" None format of the image preview to be included - Possible settings for
are: -
None no embedded preview "Interchange" device-independent preview (EPSI) "Metafile" Windows metafile preview (WMF) "TIFF" TIFF raster image - Possible settings for
: -
Automatic automatically chooses the most suitable rendering method True rasterize graphics that require advanced versions of PDF False use vector graphics
ExamplesExamplesopen allclose all
Basic Examples (7)Basic Examples (7)
Import an EPS file as vector graphics:
| In[1]:= |
| Out[1]= | ![]() |
Export vector graphics to EPS:
| In[1]:= |
| Out[1]= | ![]() |
| In[2]:= |
| Out[2]= |
Export a function plot to EPS:
| In[1]:= |
| In[2]:= |
| Out[2]= |
When converting output containing characters to EPS, Mathematica by default includes all nonstandard fonts in the exported document:
| In[1]:= |
| Out[1]= | ![]() |
This exports a Cell expression to EPS:
| In[1]:= |
| Out[1]= |
This converts a Notebook expression to EPS:
| In[1]:= |
| Out[1]= |
| In[1]:= |
| Out[1]= |
New in 4 | Last modified in 8
Mathematica 9 is now available!
New to Mathematica?
Find your learning path »
Have a question?
Ask support »






