Skip to content

Fix some minor docstring typos #24282

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
Nov 1, 2022
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
8 changes: 4 additions & 4 deletions lib/matplotlib/cbook/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -132,9 +132,9 @@ class CallbackRegistry:
for a set of signals and callbacks:

>>> def oneat(x):
... print('eat', x)
... print('eat', x)
>>> def ondrink(x):
... print('drink', x)
... print('drink', x)

>>> from matplotlib.cbook import CallbackRegistry
>>> callbacks = CallbackRegistry()
Expand Down Expand Up @@ -1905,7 +1905,7 @@ def _array_perimeter(arr):

Examples
--------
>>> i, j = np.ogrid[:3,:4]
>>> i, j = np.ogrid[:3, :4]
>>> a = i*10 + j
>>> a
array([[ 0, 1, 2, 3],
Expand Down Expand Up @@ -1949,7 +1949,7 @@ def _unfold(arr, axis, size, step):

Examples
--------
>>> i, j = np.ogrid[:3,:7]
>>> i, j = np.ogrid[:3, :7]
>>> a = i*10 + j
>>> a
array([[ 0, 1, 2, 3, 4, 5, 6],
Expand Down
5 changes: 2 additions & 3 deletions lib/matplotlib/widgets.py
Original file line number Diff line number Diff line change
Expand Up @@ -2908,10 +2908,9 @@ class RectangleSelector(_SelectorWidget):
... print(erelease.xdata, erelease.ydata)
>>> props = dict(facecolor='blue', alpha=0.5)
>>> rect = mwidgets.RectangleSelector(ax, onselect, interactive=True,
props=props)
... props=props)
>>> fig.show()

>>> selector.add_state('square')
>>> rect.add_state('square')

See also: :doc:`/gallery/widgets/rectangle_selector`
"""
Expand Down
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy