Skip to content

Commit

Permalink
Merge pull request #24282 from QuLogic/docstring-typos
Browse files Browse the repository at this point in the history
Fix some minor docstring typos
  • Loading branch information
timhoffm committed Nov 1, 2022
2 parents f2b5486 + 13438f8 commit 14c50c8
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
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 @@ -1871,7 +1871,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 @@ -1915,7 +1915,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

0 comments on commit 14c50c8

Please sign in to comment.