Skip to content

Commit ee1c70b

Browse files
committed
FIX: cast Patch linewidth to float for dash scaling
1 parent 2b75c9e commit ee1c70b

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

lib/matplotlib/patches.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -459,7 +459,8 @@ def set_linewidth(self, w):
459459
w : float or None
460460
"""
461461
w = mpl._val_or_rc(w, 'patch.linewidth')
462-
self._linewidth = float(w)
462+
w = float(w)
463+
self._linewidth = w
463464
self._dash_pattern = mlines._scale_dashes(*self._unscaled_dash_pattern, w)
464465
self.stale = True
465466

0 commit comments

Comments
 (0)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy