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

Function test_marker_with_nan

lib/matplotlib/tests/test_agg.py:73–82  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

71
72
73def test_marker_with_nan():
74 # This creates a marker with nans in it, which was segfaulting the
75 # Agg backend (see #3722)
76 fig, ax = plt.subplots(1)
77 steps = 1000
78 data = np.arange(steps)
79 ax.semilogx(data)
80 ax.fill_between(data, data*0.8, data*1.2)
81 buf = io.BytesIO()
82 fig.savefig(buf, format='png')
83
84
85def test_long_path():

Callers

nothing calls this directly

Calls 4

semilogxMethod · 0.80
subplotsMethod · 0.45
fill_betweenMethod · 0.45
savefigMethod · 0.45

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…