Do you need to place a legend in the bottom centre of your figure? It may happen that a southoutside-located LEGEND will overlap with your graph axes. To overcome that I use AXLEGEND.
The enhancement can be applied to figures with a single plot or with a set of subplots. Consult the hlp part and the demo example.
The current version will be updated further (varargin, column-legend). Hope this inspires more custom legend functions.
This User (2022). axlegend (https://www.mathworks.com/matlabcentral/fileexchange/42072-axlegend), MATLAB Central File Exchange. Retrieved .
MATLAB Release Compatibility
Platform CompatibilityWindows macOS Linux
Inspired by: gridLegend - a multi column format for legends
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!Start Hunting!