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.
Ioannis Filippidis (2023). LaTeX Plot Annotation (https://www.mathworks.com/matlabcentral/fileexchange/35141-latex-plot-annotation), MATLAB Central File Exchange. Retrieved .
MATLAB Release Compatibility
Platform CompatibilityWindows macOS Linux
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!Start Hunting!