10000 TST : eventplot empty event list · matplotlib/matplotlib@fa9fb7e · GitHub
[go: up one dir, main page]

Skip to content

Commit fa9fb7e

Browse files
committed
TST : eventplot empty event list
test for eventplot not raising an exception
1 parent 6a7a405 commit fa9fb7e

File tree

1 file changed

+9
-0
lines changed

1 file changed

+9
-0
lines changed

lib/matplotlib/tests/test_axes.py

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1297,6 +1297,14 @@ def test_eventplot():
12971297
num_collections = len(colls)
12981298
np.testing.assert_equal(num_collections, num_datasets)
12991299

1300+
1301+
@cleanup
1302+
def test_empty_eventplot():
1303+
fig, ax = plt.subplots(1, 1)
1304+
ax.eventplot([[]], colors=[(0.0, 0.0, 0.0, 0.0)])
1305+
plt.draw()
1306+
1307+
13001308
@image_comparison(baseline_images=['vertex_markers'], extensions=['png'],
13011309
remove_text=True)
13021310
def test_vertex_markers():
@@ -1389,6 +1397,7 @@ def test_mixed_collection():
13891397
ax.set_xlim(0, 16)
13901398
ax.set_ylim(0, 16)
13911399

1400+
13921401
@cleanup
13931402
def test_subplot_key_hash():
13941403
ax = plt.subplot(np.float64(5.5), np.int64(1), np.float64(1.2))

0 commit comments

Comments
 (0)
0