()
| 31 | @image_comparison(['overflow'], remove_text=True, style='_classic_test', |
| 32 | tol=0 if platform.machine() == 'x86_64' else 0.007) |
| 33 | def test_overflow(): |
| 34 | x = np.array([1.0, 2.0, 3.0, 2.0e5]) |
| 35 | y = np.arange(len(x)) |
| 36 | |
| 37 | fig, ax = plt.subplots() |
| 38 | ax.plot(x, y) |
| 39 | ax.set_xlim(2, 6) |
| 40 | |
| 41 | |
| 42 | @image_comparison(['clipping_diamond'], remove_text=True, style='_classic_test') |