Skip to content
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

Backport PR #24282 on branch v3.6.x (Fix some minor docstring typos) #24330

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.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
8 changes: 4 additions & 4 deletions lib/matplotlib/cbook/__init__.py
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
Expand Up @@ -2918,10 +2918,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