Fixed #3652, minor grid lines sometimes rendering outside the plot area to the right.