shlegend
plots legend
Contents
Syntax
Hlegend = shlegend (legend, pos, space, txt, i_legend)
Description
plots legend
Input:
- legend: (n,2)-cell matrix with with marker (5-vector of cells), item (character or cell string)
- pos: optional 2-vector with position of lower-left corner of legend within box (default: 0.7, 0.2)
- space: optinal 2-vector with space between marker and item (horizontal) space between marker and marker (vertical); default: 0.9, 0.45
- txt: optional character string with title above legend figure
- i_legend: optional integer with highlighter (from 1 till n)
Output:
- Hlegend: handle of figure
Remarks
create legend with select_legend; press any key when done with select_legend
Example of use
shlegend(select_legend) or legend = select_legend; shlegend(legend, [], [], 'example');