Skip to content

Improve/correct documentation #25409

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Mar 8, 2023
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/axes/_axes.py
Original file line number Diff line number Diff line change
Expand Up @@ -3115,7 +3115,7 @@ def pie(self, x, explode=None, labels=None, colors=None,
``fmt % pct``. If *autopct* is a function, then it will be called.

pctdistance : float, default: 0.6
The relative distance along the radius at which the the text
The relative distance along the radius at which the text
generated by *autopct* is drawn. To draw the text outside the pie,
set *pctdistance* > 1. This parameter is ignored if *autopct* is
``None``.
Expand Down
3 changes: 3 additions & 0 deletions lib/matplotlib/patches.py
Original file line number Diff line number Diff line change
Expand Up @@ -3083,6 +3083,9 @@ class ArrowStyle(_Style):

%(ArrowStyle:table)s

For an overview of the visual appearance, see
:doc:`/gallery/text_labels_and_annotations/fancyarrow_demo`.
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The update was adding a leading / here...


An instance of any arrow style class is a callable object,
whose call signature is::

Expand Down
6 changes: 6 additions & 0 deletions lib/matplotlib/widgets.py
Original file line number Diff line number Diff line change
Expand Up @@ -188,6 +188,8 @@ def __init__(self, ax, label, image=None,
useblit : bool, default: True
Use blitting for faster drawing if supported by the backend.
See the tutorial :doc:`/tutorials/advanced/blitting` for details.

.. versionadded:: 3.7
"""
super().__init__(ax)

Expand Down Expand Up @@ -1029,6 +1031,8 @@ def __init__(self, ax, labels, actives=None, *, useblit=True,
useblit : bool, default: True
Use blitting for faster drawing if supported by the backend.
See the tutorial :doc:`/tutorials/advanced/blitting` for details.

.. versionadded:: 3.7
label_props : dict, optional
Dictionary of `.Text` properties to be used for the labels.

Expand Down Expand Up @@ -1634,6 +1638,8 @@ def __init__(self, ax, labels, active=0, activecolor=None, *,
useblit : bool, default: True
Use blitting for faster drawing if supported by the backend.
See the tutorial :doc:`/tutorials/advanced/blitting` for details.

.. versionadded:: 3.7
label_props : dict or list of dict, optional
Dictionary of `.Text` properties to be used for the labels.

Expand Down
2 changes: 1 addition & 1 deletion lib/mpl_toolkits/mplot3d/art3d.py
Original file line number Diff line number Diff line change
Expand Up @@ -848,7 +848,7 @@ def __init__(self, verts, *args, zsort='average', shade=False,

.. versionadded:: 3.7

lightsource : `~matplotlib.colors.LightSource`
lightsource : `~matplotlib.colors.LightSource`, optional
The lightsource to use when *shade* is True.

.. versionadded:: 3.7
Expand Down