8000 Fix Line2D function set_markersize so it doesn't fail if given a stri… · matplotlib/matplotlib@e707753 · GitHub
[go: up one dir, main page]

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

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

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)
0