MCPcopy Index your code
hub / github.com/matplotlib/matplotlib / test_overflow

Function test_overflow

lib/matplotlib/tests/test_simplification.py:33–39  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

31@image_comparison(['overflow'], remove_text=True, style='_classic_test',
32 tol=0 if platform.machine() == 'x86_64' else 0.007)
33def 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')

Callers

nothing calls this directly

Calls 3

subplotsMethod · 0.45
plotMethod · 0.45
set_xlimMethod · 0.45

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…