Place legend outside the plot, beneath the title
Version 1.0.0.0 (8.05 KB) by
Kevin J. Delaney
Moves the legend outside the plot but underneath the title.
Move the legend outside the plot (to avoid covering the data) but on top (to avoid squeezing the plot to make room) and underneath the title. (Because I think having the legend above the title looks awkward.)
Cite As
Kevin J. Delaney (2026). Place legend outside the plot, beneath the title (https://in.mathworks.com/matlabcentral/fileexchange/41746-place-legend-outside-the-plot-beneath-the-title), MATLAB Central File Exchange. Retrieved .
MATLAB Release Compatibility
Created with
R2013a
Compatible with any release
Platform Compatibility
Windows macOS LinuxCategories
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 |
