Legend from DisplayName
Version 1.0.0.0 (594 Bytes) by
Kristian Svartveit
Adds legend with strings from DisplayName
1.1K Downloads
Updated
13 Mar 2008
No License
The function accepts handles to figures/axes and adds legends to all axes found by finndobj(handle, 'type', 'axes')
The legend text string is collected from the line objects DisplayName properties.
Cite As
Kristian Svartveit (2026). Legend from DisplayName (https://www.mathworks.com/matlabcentral/fileexchange/19198-legend-from-displayname), MATLAB Central File Exchange. Retrieved .
MATLAB Release Compatibility
Created with
R2008a
Compatible with any release
Platform Compatibility
Windows macOS LinuxCategories
- MATLAB > Graphics > Labels and Styling > Labels and Annotations > Legend >
- MATLAB > Graphics > Graphics Objects > Graphics Object Properties >
Find more on Legend in Help Center and MATLAB Answers
Tags
Discover Live Editor
Create scripts with code, output, and formatted text in a single executable document.
| Version | Published | Release Notes | |
|---|---|---|---|
| 1.0.0.0 |
