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

Function test_None_zorder

lib/matplotlib/tests/test_artist.py:289–296  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

287
288
289def test_None_zorder():
290 fig, ax = plt.subplots()
291 ln, = ax.plot(range(5), zorder=None)
292 assert ln.get_zorder() == mlines.Line2D.zorder
293 ln.set_zorder(123456)
294 assert ln.get_zorder() == 123456
295 ln.set_zorder(None)
296 assert ln.get_zorder() == mlines.Line2D.zorder
297
298
299@pytest.mark.parametrize('accept_clause, expected', [

Callers

nothing calls this directly

Calls 4

get_zorderMethod · 0.80
subplotsMethod · 0.45
plotMethod · 0.45
set_zorderMethod · 0.45

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…