version (3.2 KB) by Alexander Mering
Add as many legend you want to a single figure


Updated 27 Sep 2013

View License

This function allows to add multiple legends to a single figure / axes.

Simply define the typical legend properties such as DisplayName, LineStyle, Color, ... and there you go.

All additional settings such as Orientation, Location, ... could be freely choosen for each of the extra legends.

The contained examlpe shows the "ordinary" legend together with three additional legends.

Cite As

Alexander Mering (2022). AddMultipleLegends (, MATLAB Central File Exchange. Retrieved .

MATLAB Release Compatibility
Created with R2011b
Compatible with any release
Platform Compatibility
Windows macOS Linux

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!