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

Function test_eventplot_units_list

lib/matplotlib/tests/test_axes.py:5583–5594  ·  view source on GitHub ↗
(fig_test, fig_ref)

Source from the content-addressed store, hash-verified

5581
5582@check_figures_equal()
5583def 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')

Callers

nothing calls this directly

Calls 2

eventplotMethod · 0.80
subplotsMethod · 0.45

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…