Skip to content

Commit 9fa83c3

Browse files
committed
Remove 0 when indexing
1 parent d04179f commit 9fa83c3

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/matplotlib/collections.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -1101,7 +1101,7 @@ def set_verts(self, verts, closed=True):
11011101

11021102
# Fast path for arrays
11031103
if isinstance(verts, np.ndarray):
1104-
verts_pad = np.concatenate((verts, verts[:, 0:1]), axis=1)
1104+
verts_pad = np.concatenate((verts, verts[:, :1]), axis=1)
11051105
# Creating the codes once is much faster than having Path do it
11061106
# separately each time by passing closed=True.
11071107
codes = np.empty(verts_pad.shape[1], dtype=mpath.Path.code_type)

0 commit comments

Comments
 (0)