Defines a legend adequately positioned with optional title
[hl] = CL_g_legend(a, str [,pos, header, new_axes])
Defines a legend positioned adequately by changing some properties of the axes it is derived from (right margin).
A title may be optionally defined.
The legend is optionally created in a new axes entity in order to avoid having the title move when zooming in/out.
Handle of the axes entity. Default = current axes (gca()).
Strings used for the legend (1xN or Nx1: as many as there are 'Polyline' entities in 'a').
(optional) Position of the legend: [x,y], where x: (normalized coordinates) distance from the left, y: (normalized coordinate) distance from the top. Default is [0.75, 0.2].
(optional) Title of the legend.
(optional) %t if the legend must be created in a new axes entity. Default is %t if 'header' is defined, else it is %f.
Handle of the legend entity created.
CNES - DCT/SB (AL)