| 5581 | |
| 5582 | @check_figures_equal() |
| 5583 | def test_eventplot_units_list(fig_test, fig_ref): |
| 5584 | # test that list of lists converted properly: |
| 5585 | ts_1 = [datetime.datetime(2021, 1, 1), datetime.datetime(2021, 1, 2), |
| 5586 | datetime.datetime(2021, 1, 3)] |
| 5587 | ts_2 = [datetime.datetime(2021, 1, 15), datetime.datetime(2021, 1, 16)] |
| 5588 | |
| 5589 | ax = fig_ref.subplots() |
| 5590 | ax.eventplot(ts_1, lineoffsets=0) |
| 5591 | ax.eventplot(ts_2, lineoffsets=1) |
| 5592 | |
| 5593 | ax = fig_test.subplots() |
| 5594 | ax.eventplot([ts_1, ts_2]) |
| 5595 | |
| 5596 | |
| 5597 | @image_comparison(['marker_styles.png'], remove_text=True, style='_classic_test') |