diff --git a/lib/matplotlib/cm.py b/lib/matplotlib/cm.py index 1c07e9eaf13d..a2b0a75816d4 100644 --- a/lib/matplotlib/cm.py +++ b/lib/matplotlib/cm.py @@ -172,7 +172,7 @@ def register(self, cmap, *, name=None, force=False): name : str, optional The name for the colormap. If not given, ``cmap.name`` is used. - force: bool, default: False + force : bool, default: False If False, a ValueError is raised if trying to overwrite an already registered name. True supports overwriting registered colormaps other than the builtin colormaps. diff --git a/lib/matplotlib/colors.py b/lib/matplotlib/colors.py index 6d126e6725fb..9c6a9e0046ac 100644 --- a/lib/matplotlib/colors.py +++ b/lib/matplotlib/colors.py @@ -400,7 +400,7 @@ def to_hex(c, keep_alpha=False): ---------- c : :doc:`color ` or `numpy.ma.masked` - keep_alpha: bool, default: False + keep_alpha : bool, default: False If False, use the ``#rrggbb`` format, otherwise use ``#rrggbbaa``. Returns diff --git a/lib/matplotlib/figure.py b/lib/matplotlib/figure.py index 974e46d6e4b3..bd6e99de0350 100644 --- a/lib/matplotlib/figure.py +++ b/lib/matplotlib/figure.py @@ -2330,11 +2330,11 @@ def set_layout_engine(self, layout=None, **kwargs): Parameters ---------- - layout: {'constrained', 'tight'} or `~.LayoutEngine` + layout : {'constrained', 'tight'} or `~.LayoutEngine` 'constrained' will use `~.ConstrainedLayoutEngine`, 'tight' will use `~.TightLayoutEngine`. Users and libraries can define their own layout engines as well. - kwargs: dict + kwargs : dict The keyword arguments are passed to the layout engine to set things like padding and margin sizes. Only used if *layout* is a string. """ diff --git a/lib/matplotlib/patches.py b/lib/matplotlib/patches.py index fd81dbb591c1..9bfe41e2fa7c 100644 --- a/lib/matplotlib/patches.py +++ b/lib/matplotlib/patches.py @@ -1394,13 +1394,13 @@ def set_data(self, *, x=None, y=None, dx=None, dy=None, width=None, dx, dy : float or None, default: None The length of the arrow along x and y direction. - width: float or None, default: None + width : float or None, default: None Width of full arrow tail. - head_width: float or None, default: None + head_width : float or None, default: None Total width of the full arrow head. - head_length: float or None, default: None + head_length : float or None, default: None Length of arrow head. """ if x is not None: diff --git a/lib/matplotlib/widgets.py b/lib/matplotlib/widgets.py index bee2bd533a3a..da5b40a5ef28 100644 --- a/lib/matplotlib/widgets.py +++ b/lib/matplotlib/widgets.py @@ -1691,7 +1691,7 @@ class MultiCursor(Widget): horizOn : bool, default: False Whether to draw the horizontal line. - vertOn: bool, default: True + vertOn : bool, default: True Whether to draw the vertical line. Other Parameters