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

Skip to content

Commit e707753

Browse files
committed
Fix Line2D function set_markersize so it doesn't fail if given a string instead of a float
1 parent b091e26 commit e707753

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

lib/matplotlib/lines.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1036,7 +1036,7 @@ def set_markersize(self, sz):
10361036
10371037
ACCEPTS: float
10381038
"""
1039-
self._markersize = sz
1039+
self._markersize = float(sz)
10401040

10411041
def set_xdata(self, x):
10421042
"""

0 commit comments

Comments
 (0)