diff --git a/lib/matplotlib/mpl-data/matplotlibrc b/lib/matplotlib/mpl-data/matplotlibrc index 106d881ce88c..01a2fc85d959 100644 --- a/lib/matplotlib/mpl-data/matplotlibrc +++ b/lib/matplotlib/mpl-data/matplotlibrc @@ -141,7 +141,7 @@ ## Patches are graphical objects that fill 2D space, like polygons or circles. ## See https://matplotlib.org/api/artist_api.html#module-matplotlib.patches ## for more information on patch properties. -#patch.linewidth: 1 # edge width in points. +#patch.linewidth: 1.0 # edge width in points. #patch.facecolor: C0 #patch.edgecolor: black # if forced, or patch is not filled #patch.force_edgecolor: False # True to always use edgecolor diff --git a/lib/matplotlib/patches.py b/lib/matplotlib/patches.py index b2ec23eca8c1..2a76a227e8fa 100644 --- a/lib/matplotlib/patches.py +++ b/lib/matplotlib/patches.py @@ -75,16 +75,12 @@ def __init__(self, """ super().__init__() - if linewidth is None: - linewidth = mpl.rcParams['patch.linewidth'] if linestyle is None: linestyle = "solid" if capstyle is None: capstyle = CapStyle.butt if joinstyle is None: joinstyle = JoinStyle.miter - if antialiased is None: - antialiased = mpl.rcParams['patch.antialiased'] self._hatch_color = colors.to_rgba(mpl.rcParams['hatch.color']) self._fill = True # needed for set_facecolor call @@ -405,8 +401,6 @@ def set_linewidth(self, w): """ if w is None: w = mpl.rcParams['patch.linewidth'] - if w is None: - w = mpl.rcParams['axes.linewidth'] self._linewidth = float(w) self._dash_pattern = mlines._scale_dashes( *self._unscaled_dash_pattern, w)