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

Skip to content

Commit 4ef1da9

Browse files
authored
Merge pull request #15841 from tacaswell/doc_set_offsets
DOC: specify the expected shape in the Collection.set_offset
2 parents c42fdda + e51a8d8 commit 4ef1da9

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/matplotlib/collections.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -475,7 +475,7 @@ def set_offsets(self, offsets):
475475
476476
Parameters
477477
----------
478-
offsets : float or sequence of floats
478+
offsets : array-like (N, 2) or (2,)
479479
"""
480480
offsets = np.asanyarray(offsets, float)
481481
if offsets.shape == (2,): # Broadcast (2,) -> (1, 2) but nothing else.

0 commit comments

Comments
 (0)