Convert figures to PGF files that can be included in LaTeX documents.
Updated 22 May 2009

View License

Matfig2PGF is script that allows users to convert MATLAB figures to PGF <>. PGF figures can be included in a LaTeX document using the PGF macro package. The PGF package works with most important LaTeX backends (such as pdfTeX and Dvips). Using Matfig2PGF all text in the figure is typeset by LaTeX, so it blends in nicely with the rest of the document.

- 2D plots
- subplots
- histograms
- linear and logarithmic axes
- grids
- legends
- line styles and plot marks
- resulting pgf file can be used in LaTeX and pdfLaTeX

The current version is 0.3.9

Cite As

Paul Wagenaars (2024). Matfig2PGF (, MATLAB Central File Exchange. Retrieved .

MATLAB Release Compatibility
Created with R2007b
Compatible with any release
Platform Compatibility
Windows macOS Linux
Find more on Printing and Saving in Help Center and MATLAB Answers

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!
Version Published Release Notes

New version with a bug fix.

New version with a couple of bug fixes.

New version (0.3.7)