Legend to latex converter

This function converts a Matlab legend to a text annotation for latex interpretation.
2.4K Downloads
Updated Thu, 26 Nov 2009 08:00:43 +0000

View License

LEGEND2LATEX(FIGURE_HANDLE) Converts the present legends in the figure to legends that can be postprocessed using LaPrint.

Note that all earlier legend2latex objects are removed.

Can convert several line types and markers, but all may not look equally well. Ideally used in combination with LaPrint and a latex interpreter that uses the AMS math package (for the markers).

Cite As

Emile Demarteau (2024). Legend to latex converter (https://www.mathworks.com/matlabcentral/fileexchange/25426-legend-to-latex-converter), MATLAB Central File Exchange. Retrieved .

MATLAB Release Compatibility
Created with R2007b
Compatible with any release
Platform Compatibility
Windows macOS Linux
Acknowledgements

Inspired by: LaPrint

Community Treasure Hunt

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

Start Hunting!
Version Published Release Notes
1.3.0.0

The updated version can also handle stem, area and bar graphs.

1.0.0.0