Finally fixed the presentation of data in legends of plots