You are now following this Submission
- You will see updates in your followed content feed
- You may receive emails, depending on your communication preferences
This short function will generate a legend based on 'Tag' information given by plot. A legend title is also possible.
figure; hold on; x = 1:10; plot(x,x,'Tag','Positive'); plot(x,-x,'Tag','Negative'); labelplot('eo','v','Slope');
The above example is equivalent to
legend('Positive','Negative')
and adding a text box 'Slope' above it.
Cite As
Will Robertson (2026). labelplot (https://www.mathworks.com/matlabcentral/fileexchange/11234-labelplot), MATLAB Central File Exchange. Retrieved .
General Information
- Version 1.1.0.0 (3.04 KB)
MATLAB Release Compatibility
- Compatible with any release
Platform Compatibility
- Windows
- macOS
- Linux
