()
| 7689 | |
| 7690 | |
| 7691 | def 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 | |
| 7706 | def test_broken_barh_categorical(): |
nothing calls this directly
no test coverage detected
searching dependent graphs…