In v2.x: ``` python fig, ax = plt.subplots() ax.plot([0.5, 1.5], [1, 2]) ax.locator_params(axis='x', integer=True) ``` This leads to an infinite loop in `MaxNLocator._raw_ticks`.