Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 14c50c8

Browse files
authored
Merge pull request #24282 from QuLogic/docstring-typos
Fix some minor docstring typos
2 parents f2b5486 + 13438f8 commit 14c50c8

File tree

2 files changed

+6
-7
lines changed

2 files changed

+6
-7
lines changed

lib/matplotlib/cbook/__init__.py

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -132,9 +132,9 @@ class CallbackRegistry:
132132
for a set of signals and callbacks:
133133
134134
>>> def oneat(x):
135-
... print('eat', x)
135+
... print('eat', x)
136136
>>> def ondrink(x):
137-
... print('drink', x)
137+
... print('drink', x)
138138
139139
>>> from matplotlib.cbook import CallbackRegistry
140140
>>> callbacks = CallbackRegistry()
@@ -1871,7 +1871,7 @@ def _array_perimeter(arr):
18711871
18721872
Examples
18731873
--------
1874-
>>> i, j = np.ogrid[:3,:4]
1874+
>>> i, j = np.ogrid[:3, :4]
18751875
>>> a = i*10 + j
18761876
>>> a
18771877
array([[ 0, 1, 2, 3],
@@ -1915,7 +1915,7 @@ def _unfold(arr, axis, size, step):
19151915
19161916
Examples
19171917
--------
1918-
>>> i, j = np.ogrid[:3,:7]
1918+
>>> i, j = np.ogrid[:3, :7]
19191919
>>> a = i*10 + j
19201920
>>> a
19211921
array([[ 0, 1, 2, 3, 4, 5, 6],

lib/matplotlib/widgets.py

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2908,10 +2908,9 @@ class RectangleSelector(_SelectorWidget):
29082908
... print(erelease.xdata, erelease.ydata)
29092909
>>> props = dict(facecolor='blue', alpha=0.5)
29102910
>>> rect = mwidgets.RectangleSelector(ax, onselect, interactive=True,
2911-
props=props)
2911+
... props=props)
29122912
>>> fig.show()
2913-
2914-
>>> selector.add_state('square')
2913+
>>> rect.add_state('square')
29152914
29162915
See also: :doc:`/gallery/widgets/rectangle_selector`
29172916
"""

0 commit comments

Comments
 (0)