added possibility to label the legend ticks