Create a struct for each legend found and add necessary data to it
legends = create_legends_struct(axes)
cell with axes handles
the figures colormap
struct with legends data
Creates a struct for each legend found in any axis and add the following fields: .handle: legend handle .links: matrix of handles of associated polylines .visible: legend visibility (on|off) .text: a column vector containing the legends entries .position: a row vector containing the legends upper left coordinates .color.font: font used for the legends entries