This function saves a figure or single axes to one or more vector and/or bitmap file formats, and/or outputs a rasterized version to the workspace, with the following properties:
- Figure/axes reproduced as it appears on screen
- Cropped/padded borders (optional)
- Embedded fonts (pdf only)
- Improved line and grid line styles
- Anti-aliased graphics (bitmap formats)
- Render images at native resolution (optional for bitmap formats)
- Transparent background supported (pdf, eps, png)
- Semi-transparent patch objects supported (png only)
- RGB, CMYK or grayscale output (CMYK only with pdf, eps, tiff)
- Variable image compression, including lossless (pdf, eps, jpg)
- Optionally append to file (pdf, tiff)
- Vector formats: pdf, eps
- Bitmap formats: png, tiff, jpg, bmp, export to workspace
This function is especially suited to exporting figures for use in publications and presentations, because of the high quality and portability of media produced.
Note that the background color and figure dimensions are reproduced (the latter approximately, and ignoring cropping & magnification) in the output file. For transparent background (and semi-transparent patch objects), use the -transparent option, and set the axes 'Color' property to 'none' where desired. Pdf, eps and png are the only file formats to support a transparent background, while the png format alone supports transparency of patch objects.
When exporting to vector format (pdf & eps), and to bitmap using the painters renderer, this function requires that ghostscript is installed on your system. You can download this from:
When exporting to eps it additionally requires pdftops, from the Xpdf suite of functions. You can download this from:
Usage examples and tips can be found in the README section at:
A technical description of the various components can be found here:
This submission was originally created by Oliver Woodford. Yair Altman maintains this utility since Jan 2015.
When reporting bugs, please raise an issue via GitHub: https://github.com/altmany/export_fig/issues
Do not paste the error into the comments below - I will not respond to these.
Savefig, Fix Dashed And Dotted Lines In Eps Export, Fixpslinestyle, Myaa My Anti Alias For Matlab, Fix Lines, Imclipboard, and Screen Capture inspired this file.
This file inspired Google Earth Overlay, Causal State Modeller Toolbox, Machine Learning Balancing A Stack Of Balls, Fast And Efficient Spectral Clustering, Co Blade: Software For Analysis And Design Of Composite Blades, Latexfigure, Figuremaker Publication Quality Figures With Matlab, Telo Tool Terminal Restriction Fragment Analysis, Multiple Colormaps, Color Checker Chart, Simulation Of Random Walk, Multiple Page Pdf, Matlab Icon For Linux (With Transparency), Jc Dstatus Plot, Xively Read, Append Pdfs, Save Figure To File, Choose The Dimensions And Crop Figure, Export Figure To 3 D Interactive Pdf, Imsavecircles, Plot Pub Publication Quality Graphs In Matlab, Export Figure Widget (Efw), Export Tex, Matlab Save Figure, Spectral Stochastic Finite Element Method: 1 D Euler Bernoulli Beam Example, Polar G(Start Complex,End Complex,Arrow Length,Arrow Angle,Colour Code,Line Width), Spectral Stochastic Finite Element Method: Love Kirchhoff Plate Example, Efigure, Surface2tikz(Fighandle,Filename,Varargin), Bibget, Online Portfolio Selection With Transaction Costs Including Market Impact Costs, Plot Multiple Surfaces Multisurf(X,Y,Z,Color), Jrichter24/To Ppt, Microscopy Image Browser (Mib), Export Png Inkscape(Filename,Dpi,Handle), Tight Subplot With Units In Centimeter, and Pm Architectures Project.
| Required Products
MATLAB 8.4 (R2014b)