Fix for plot monitor legend

Plot monitor script issue #290: the legend width now adapts itself in function of the channel's name.