No BSD License  

Highlights from
Legend from DisplayName

Be the first to rate this file! 2 Downloads (last 30 days) File Size: 1.02 KB File ID: #19198

Legend from DisplayName

by Kristian Svartveit

 

13 Mar 2008 (Updated 13 Mar 2008)

Adds legend with strings from DisplayName

| Watch this File

File Information
Description

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.

MATLAB release MATLAB 7.6 (R2008a)
Tags for This File  
Everyone's Tags
Tags I've Applied
Add New Tags Please login to tag files.
Comments and Ratings (1)
17 Mar 2008 Jiro Doke

Kristian,
If the data already has "DisplayName" set, then calling:

legend show

will display a legend with the appropriate names.

Please login to add a comment or rating.
Tag Activity for this File
Tag Applied By Date/Time
annotation Kristian Svartveit 22 Oct 2008 09:53:25
customization Kristian Svartveit 22 Oct 2008 09:53:25
legend Kristian Svartveit 22 Oct 2008 09:53:25
displayname Kristian Svartveit 22 Oct 2008 09:53:25
add Kristian Svartveit 22 Oct 2008 09:53:25
axes Kristian Svartveit 22 Oct 2008 09:53:25
graphics Kristian Svartveit 22 Oct 2008 09:53:25
plot Kristian Svartveit 22 Oct 2008 09:53:25

Contact us at files@mathworks.com