freelegend(hline,hax,hf,str,posi,varargin)
Version 1.0.0.0 (2.66 KB) by
qian
Add a legend to any place of a plot.
This function uses plot and text commands provided by matlab to draw a very flexible legend. Now you can draw a legend in your own way. If you need, you can write more sophisticated functions based on this, which would be more personalized.
Cite As
qian (2023). freelegend(hline,hax,hf,str,posi,varargin) (https://www.mathworks.com/matlabcentral/fileexchange/52835-freelegend-hline-hax-hf-str-posi-varargin), MATLAB Central File Exchange. Retrieved .
MATLAB Release Compatibility
Created with
R2013b
Compatible with any release
Platform Compatibility
Windows macOS LinuxCategories
Find more on Legend in Help Center and MATLAB Answers
Tags
Acknowledgements
Inspired by: simonhenin/columnlegend
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!Discover Live Editor
Create scripts with code, output, and formatted text in a single executable document.
Version | Published | Release Notes | |
---|---|---|---|
1.0.0.0 |