Version (4.85 KB) by This User
Create a bottom-centered legend and realign graph axes.
Updated 3 Jun 2013

View License

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.

Cite As

This User (2024). axlegend (, MATLAB Central File Exchange. Retrieved .

MATLAB Release Compatibility
Created with R2012b
Compatible with any release
Platform Compatibility
Windows 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!
Version Published Release Notes