Skip to content

Commit e7efa10

Browse files
committed
Test for set_array in Collection
1 parent 703343e commit e7efa10

File tree

1 file changed

+9
-0
lines changed

1 file changed

+9
-0
lines changed

lib/matplotlib/tests/test_collections.py

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -649,6 +649,15 @@ def test_collection_set_verts_array():
649649
assert np.array_equal(ap._codes, atp._codes)
650650

651651

652+
def test_collection_set_array():
653+
xs = np.arange(10)
654+
ymin = 0
655+
ymax = 1
656+
vals = [*range(10)]
657+
658+
plt.vlines(xs, ymin, ymax, array=vals)
659+
660+
652661
def test_blended_collection_autolim():
653662
a = [1, 2, 4]
654663
height = .2

0 commit comments

Comments
 (0)