Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commitee1c70b

Browse files
committed
FIX: cast Patch linewidth to float for dash scaling
1 parent2b75c9e commitee1c70b

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)

[8]ページ先頭

©2009-2025 Movatter.jp