shllegend
plots line legend
Contents
Syntax
Hlegend = shllegend (llegend, pos, space, txt, i_legend, file)
Description
plots line legend
Input:
- llegend: (n,2)-cell matrix with line (3-vector of cells), label (string)
- pos: optional 2-vector with position of lower-left corner of legend within box
- space: optinal 2-vector with space between marker and item (horizontal) space between marker and marker (vertical)
- txt: optional character string with title above legend figure
- i_legend: optional integer with highlighter (from 1 till n)
- file: optional png-file name; if given, the legend figure is saved to it and cropped (white border removed, white made transparent). The '.png' extension is optional.
Output:
- Hlegend: handle of figure (returned whether or not file is written, so it can still be edited)
Remarks
- create llegend with select_llegend; press any key when done with select_llegend
- use cropWhite to remove white border and white made transparent; shllegend does this directly
Example of use
shllegend(select_llegend) or llegend = select_llegend; shllegend(llegend, [], [], 'my_legend');