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

Function test_hist_zorder

lib/matplotlib/tests/test_axes.py:2625–2630  ·  view source on GitHub ↗
(histtype, zorder)

Source from the content-addressed store, hash-verified

2623 ("step", mpl.lines.Line2D.zorder),
2624 ("stepfilled", mpl.patches.Patch.zorder)])
2625def test_hist_zorder(histtype, zorder):
2626 ax = plt.figure().add_subplot()
2627 ax.hist([1, 2], histtype=histtype)
2628 assert ax.patches
2629 for patch in ax.patches:
2630 assert patch.get_zorder() == zorder
2631
2632
2633def test_hist_single_color_multiple_datasets():

Callers

nothing calls this directly

Calls 4

add_subplotMethod · 0.80
figureMethod · 0.80
histMethod · 0.80
get_zorderMethod · 0.80

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…