Fixed legend drawing when using lines of best fit.