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)
2 | Upper left-hand corner
3 | Lower left-hand corner
4 | Lower right-hand corner
5 | Interactive placement with the mouse

legend show

## Examples

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

## See Also

- leaf properties

## Authors

- Stéphane Mottelet