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

Function test_eventplot_defaults

lib/matplotlib/tests/test_axes.py:5474–5487  ·  view source on GitHub ↗

test that eventplot produces the correct output given the default params (see bug #3728)

()

Source from the content-addressed store, hash-verified

5472@image_comparison(['test_eventplot_defaults.png'], remove_text=True,
5473 style='_classic_test')
5474def test_eventplot_defaults():
5475 """
5476 test that eventplot produces the correct output given the default params
5477 (see bug #3728)
5478 """
5479 np.random.seed(0)
5480
5481 data1 = np.random.random([32, 20]).tolist()
5482 data2 = np.random.random([6, 20]).tolist()
5483 data = data1 + data2
5484
5485 fig = plt.figure()
5486 axobj = fig.add_subplot()
5487 axobj.eventplot(data)
5488
5489
5490@pytest.mark.parametrize(('colors'), [

Callers

nothing calls this directly

Calls 3

figureMethod · 0.80
add_subplotMethod · 0.80
eventplotMethod · 0.80

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…