Name

legend — graph legend

Calling Sequence

legend show
legend hide
legend(string1,string2,string3,...,pos)
legend(ax,...)

Parameters

stringn

string

pos

scalar

ax

axes handle

Description

legend(string1,string2,string3, ...) puts a legend on the current plot using the specified strings as labels.

legend(...,Pos) places the legend in the specified location

1 Upper right-hand corner (default)
2Upper left-hand corner
3Lower left-hand corner
4Lower right-hand corner
5Interactive placement with the mouse

legend show

Examples

plot;
subplot(221);
legend cosine
subplot(222);
legend show

See Also

leaf properties

Authors

Stéphane Mottelet