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

Function test_clipping

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

Source from the content-addressed store, hash-verified

20
21@image_comparison(['clipping'], remove_text=True, style='_classic_test')
22def test_clipping():
23 t = np.arange(0.0, 2.0, 0.01)
24 s = np.sin(2*np.pi*t)
25
26 fig, ax = plt.subplots()
27 ax.plot(t, s, linewidth=1.0)
28 ax.set_ylim(-0.20, -0.28)
29
30
31@image_comparison(['overflow'], remove_text=True, style='_classic_test',

Callers

nothing calls this directly

Calls 3

subplotsMethod · 0.45
plotMethod · 0.45
set_ylimMethod · 0.45

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…