diff --git a/lib/matplotlib/axes/_axes.py b/lib/matplotlib/axes/_axes.py index 48838ac39975..f1ec9406ea6b 100644 --- a/lib/matplotlib/axes/_axes.py +++ b/lib/matplotlib/axes/_axes.py @@ -7869,8 +7869,9 @@ def violinplot(self, dataset, positions=None, vert=True, widths=0.5, The method used to calculate the estimator bandwidth. This can be 'scott', 'silverman', a scalar constant or a callable. If a scalar, this will be used directly as `kde.factor`. If a - callable, it should take a `GaussianKDE` instance as its only - parameter and return a scalar. If None (default), 'scott' is used. + callable, it should take a `matplotlib.mlab.GaussianKDE` instance as + its only parameter and return a scalar. If None (default), 'scott' + is used. data : indexable object, optional DATA_PARAMETER_PLACEHOLDER diff --git a/lib/matplotlib/backend_tools.py b/lib/matplotlib/backend_tools.py index 7ab87ba52879..e397fb7fc456 100644 --- a/lib/matplotlib/backend_tools.py +++ b/lib/matplotlib/backend_tools.py @@ -1006,8 +1006,8 @@ def add_tools_to_manager(toolmanager, tools=default_tools): toolmanager : `.backend_managers.ToolManager` Manager to which the tools are added. tools : {str: class_like}, optional - The tools to add in a {name: tool} dict, see `add_tool` for more - info. + The tools to add in a {name: tool} dict, see + `.backend_managers.ToolManager.add_tool` for more info. """ for name, tool in tools.items(): @@ -1021,11 +1021,12 @@ def add_tools_to_container(container, tools=default_toolbar_tools): Parameters ---------- container : Container - `backend_bases.ToolContainerBase` object that will get the tools added. + `.backend_bases.ToolContainerBase` object that will get the tools + added. tools : list, optional List in the form ``[[group1, [tool1, tool2 ...]], [group2, [...]]]`` where the tools ``[tool1, tool2, ...]`` will display in group1. - See `add_tool` for details. + See `.backend_bases.ToolContainerBase.add_tool` for details. """ for group, grouptools in tools: diff --git a/lib/matplotlib/path.py b/lib/matplotlib/path.py index 43d3f2fd95da..172013acb57b 100644 --- a/lib/matplotlib/path.py +++ b/lib/matplotlib/path.py @@ -218,7 +218,7 @@ def codes(self): code is one of `STOP`, `MOVETO`, `LINETO`, `CURVE3`, `CURVE4` or `CLOSEPOLY`. For codes that correspond to more than one vertex (`CURVE3` and `CURVE4`), that code will be repeated so - that the length of `self.vertices` and `self.codes` is always + that the length of `vertices` and `codes` is always the same. """ return self._codes diff --git a/lib/matplotlib/transforms.py b/lib/matplotlib/transforms.py index b2d4a5a8de36..2a0b63c07144 100644 --- a/lib/matplotlib/transforms.py +++ b/lib/matplotlib/transforms.py @@ -1474,7 +1474,7 @@ def transform(self, values): Returns ------- array - The output values as NumPy array of length :attr:`input_dims` or + The output values as NumPy array of length :attr:`output_dims` or shape (N x :attr:`output_dims`), depending on the input. """ # Ensure that values is a 2d array (but remember whether @@ -1519,7 +1519,7 @@ def transform_affine(self, values): Returns ------- array - The output values as NumPy array of length :attr:`input_dims` or + The output values as NumPy array of length :attr:`output_dims` or shape (N x :attr:`output_dims`), depending on the input. """ return self.get_affine().transform(values) @@ -1544,7 +1544,7 @@ def transform_non_affine(self, values): Returns ------- array - The output values as NumPy array of length :attr:`input_dims` or + The output values as NumPy array of length :attr:`output_dims` or shape (N x :attr:`output_dims`), depending on the input. """ return values