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

Skip to content

Commit dcc7c9b

Browse files
committed
FIX: collections set_offset co-ercing to float
1 parent 505cdff commit dcc7c9b

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
@@ -545,7 +545,7 @@ def set_offsets(self, offsets):
545545
----------
546546
offsets : (N, 2) or (2,) array-like
547547
"""
548-
offsets = np.asanyarray(offsets, float)
548+
offsets = np.asanyarray(offsets)
549549
if offsets.shape == (2,): # Broadcast (2,) -> (1, 2) but nothing else.
550550
offsets = offsets[None, :]
551551
self._offsets = offsets

0 commit comments

Comments
 (0)