Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion lib/matplotlib/cm.py
Original file line number Diff line number Diff line change
Expand Up @@ -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.
Expand Down
2 changes: 1 addition & 1 deletion lib/matplotlib/colors.py
Original file line number Diff line number Diff line change
Expand Up @@ -400,7 +400,7 @@ def to_hex(c, keep_alpha=False):
----------
c : :doc:`color </tutorials/colors/colors>` or `numpy.ma.masked`

keep_alpha: bool, default: False
keep_alpha : bool, default: False
If False, use the ``#rrggbb`` format, otherwise use ``#rrggbbaa``.

Returns
Expand Down
4 changes: 2 additions & 2 deletions lib/matplotlib/figure.py
Original file line number Diff line number Diff line change
Expand Up @@ -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.
"""
Expand Down
6 changes: 3 additions & 3 deletions lib/matplotlib/patches.py
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down
2 changes: 1 addition & 1 deletion lib/matplotlib/widgets.py
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down