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

Function test_broken_barh_categorical

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

Source from the content-addressed store, hash-verified

7704
7705
7706def test_broken_barh_categorical():
7707 fig, ax = plt.subplots()
7708 pc = ax.broken_barh([(0, 10)], ('a', 0.8))
7709 assert tuple(pc.get_datalim(ax.transData).intervaly) == (0, 0.8)
7710
7711 pc = ax.broken_barh([(0, 10)], ('a', 0.8), align="center")
7712 assert tuple(pc.get_datalim(ax.transData).intervaly) == (-0.4, 0.4)
7713
7714 pc = ax.broken_barh([(0, 10)], ('a', 0.8), align="top")
7715 assert tuple(pc.get_datalim(ax.transData).intervaly) == (-0.8, 0)
7716
7717
7718def test_pandas_pcolormesh(pd):

Callers

nothing calls this directly

Calls 3

broken_barhMethod · 0.80
subplotsMethod · 0.45
get_datalimMethod · 0.45

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…