LaTeX Plot Annotation

Annotate labels, title and legend using LaTeX strings.
Updated 18 Feb 2012

View License

A single command to set the xlabel, ylabel, zlabel, title and legend strings, all at once. Moreover, it accepts LaTeX and TeX strings, so that equations and other symbols can be easily placed in the figure.

Using this function, it is not necessary to export the graphics object specifically for LaTeX (e.g. using Laprint, Matfig2PGF, or any of the other converters available in File Exchange).

The font will match with the LaTeX document (if in Computer Modern) and the size will always be proportional to the figure if scaled in the document, to avoid inconsistencies between annotation and graphics.

Cite As

Ioannis Filippidis (2024). LaTeX Plot Annotation (, MATLAB Central File Exchange. Retrieved .

MATLAB Release Compatibility
Created with R2011b
Compatible with any release
Platform Compatibility
Windows macOS Linux
Find more on Labels and Annotations 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