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

Function test_broken_barh_align

lib/matplotlib/tests/test_axes.py:7691–7703  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

7689
7690
7691def test_broken_barh_align():
7692 fig, ax = plt.subplots()
7693 pc = ax.broken_barh([(0, 10)], (0, 2))
7694 for path in pc.get_paths():
7695 assert_array_equal(path.get_extents().intervaly, [0, 2])
7696
7697 pc = ax.broken_barh([(0, 10)], (10, 2), align="center")
7698 for path in pc.get_paths():
7699 assert_array_equal(path.get_extents().intervaly, [9, 11])
7700
7701 pc = ax.broken_barh([(0, 10)], (20, 2), align="top")
7702 for path in pc.get_paths():
7703 assert_array_equal(path.get_extents().intervaly, [18, 20])
7704
7705
7706def test_broken_barh_categorical():

Callers

nothing calls this directly

Calls 4

broken_barhMethod · 0.80
subplotsMethod · 0.45
get_pathsMethod · 0.45
get_extentsMethod · 0.45

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…