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

Function test_diamond

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

Source from the content-addressed store, hash-verified

41
42@image_comparison(['clipping_diamond'], remove_text=True, style='_classic_test')
43def test_diamond():
44 x = np.array([0.0, 1.0, 0.0, -1.0, 0.0])
45 y = np.array([1.0, 0.0, -1.0, 0.0, 1.0])
46
47 fig, ax = plt.subplots()
48 ax.plot(x, y)
49 ax.set_xlim(-0.6, 0.6)
50 ax.set_ylim(-0.6, 0.6)
51
52
53def test_clipping_out_of_bounds():

Callers

nothing calls this directly

Calls 4

subplotsMethod · 0.45
plotMethod · 0.45
set_xlimMethod · 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…