Updated 20 Apr 2016
PLOT2LATEX saves a Matlab figure as a pdf file in vector format for inclusion into LaTeX. Requires free and open-source vector graphics editor Inkscape. It invokes Inkscape to save the text, labels, legends, titles, etc. to be incorporated into LaTeX. This allows a true LaTeX font and scripts.
Use of the 'PDFLatex' output profile does not directly support psfrag (and therefore laprint or matlabfrag). Plot2LaTex uses the features of Inkscape to export vector image to pdf with supporting pdf_tex file for text placement. Plot2LaTeX supports transparency.
Plot2LaTeX requires Matlab version 2014b or higher.
Plot2Latex requires Inkscape.
Jan de Jong (2023). Plot2LaTeX (https://www.mathworks.com/matlabcentral/fileexchange/52700-plot2latex), MATLAB Central File Exchange. Retrieved .
MATLAB Release Compatibility
Platform CompatibilityWindows macOS Linux
Inspired by: LaPrint, matlabfrag
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!Start Hunting!
Discover Live Editor
Create scripts with code, output, and formatted text in a single executable document.
- Made compatible for Unix systems