You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Matplotlib's documentation for set_linewidth states the function only expects floats; strings this may have worked in previous versions, but the current version may have broken something
def set_linewidth(self, w):
"""
Set the patch linewidth in points.
Parameters
----------
w : float or None
"""
Attempting to execute the following code in Ch 1 results in
TypeError: must be real number, not str
:Changing the code to the following where lw=3 instead of '3' fixes the problem
Matplotlib's documentation for set_linewidth states the function only expects floats; strings this may have worked in previous versions, but the current version may have broken something
https://github.com/matplotlib/matplotlib/blob/v3.7.1/lib/matplotlib/patches.py#L384
Advise to always use numbers when setting linewidth instead of strings
Version of matplotlib: 3.7.1
The text was updated successfully, but these errors were encountered: