enable the legend plot