Fixed regression with log X axis affecting the calculated data extremes. Closes #2117.