Defines a legend adequately positioned with optional title
hl = CL_g_legend(h,str [,pos,header,new_axes])
Defines a legend for the specified axes or graphic handles.
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.
Note:
The behaviour should be OK for all scilab versions, despite the bug in "legend" for scilab versions prior to 5.4.0, for which the legends were written in the wrong order.
Graphic handle of an Axes entity or (not empty) vector of handles of polyline entities (same as legend).
(string) Legend labels (1xN or Nx1: as many as there are 'Polyline' entities in 'a').
(optional) Position (normalized coordinates) of the legend: [x,y] where x: distance from the left, y: distance from the top. Default is [0.75, 0.2].
(optional) Title of the legend.
(boolean, 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)