Check that timedelta works as x, dx pair for this method.
()
| 7680 | |
| 7681 | |
| 7682 | def test_broken_barh_timedelta(): |
| 7683 | """Check that timedelta works as x, dx pair for this method.""" |
| 7684 | fig, ax = plt.subplots() |
| 7685 | d0 = datetime.datetime(2018, 11, 9, 0, 0, 0) |
| 7686 | pp = ax.broken_barh([(d0, datetime.timedelta(hours=1))], [1, 2]) |
| 7687 | assert pp.get_paths()[0].vertices[0, 0] == mdates.date2num(d0) |
| 7688 | assert pp.get_paths()[0].vertices[2, 0] == mdates.date2num(d0) + 1 / 24 |
| 7689 | |
| 7690 | |
| 7691 | def test_broken_barh_align(): |
nothing calls this directly
no test coverage detected
searching dependent graphs…