Skip to content

Commit

Permalink
Merge pull request #24330 from meeseeksmachine/auto-backport-of-pr-24…
Browse files Browse the repository at this point in the history
…282-on-v3.6.x

Backport PR #24282 on branch v3.6.x (Fix some minor docstring typos)
  • Loading branch information
tacaswell committed Nov 1, 2022
2 parents ea96879 + 6b5aa59 commit 831f145
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 7 deletions.
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

0 comments on commit 831f145

Please sign in to comment.