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

Skip to content

Commit 7c6e84f

Browse files
authored
Merge pull request #15844 from meeseeksmachine/auto-backport-of-pr-15841-on-v3.2.x
Backport PR #15841 on branch v3.2.x (DOC: specify the expected shape in the Collection.set_offset)
2 parents 855e51c + 9ed1921 commit 7c6e84f

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

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)