Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit f849d79

Browse files
committed
add a test
1 parent 603a06b commit f849d79

File tree

1 file changed

+11
-0
lines changed

1 file changed

+11
-0
lines changed

lib/matplotlib/tests/test_axes.py

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3236,6 +3236,17 @@ def test_empty_eventplot():
32363236
plt.draw()
32373237

32383238

3239+
@pytest.mark.parametrize('data, orientation', product(
3240+
([[]], [[], [0, 1]], [[0, 1], []]),
3241+
('_empty', 'vertical', 'horizontal', None, 'none')))
3242+
def test_eventplot_orientation(data, orientation):
3243+
"""Introduced when fixing issue #6412. """
3244+
opts = {} if orientation == "_empty" else {'orientation': orientation}
3245+
fig, ax = plt.subplots(1, 1)
3246+
ax.eventplot(data, **opts)
3247+
plt.draw()
3248+
3249+
32393250
@image_comparison(baseline_images=['marker_styles'], extensions=['png'],
32403251
remove_text=True)
32413252
def test_marker_styles():

0 commit comments

Comments
 (0)