Fix legend on plots using only one y-axis.