Code covered by the BSD License
Alexander Mering (view profile)
27 Sep 2013
Add as many legend you want to a single figure
Watch this File
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.
matlab's legend is pretty awkward; this routines helps; it allows adding legend of some selected plot handles without disturbing the existing legend/
the only thing is i wish the setup is a little simpler tho