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

Skip to content

Commit 13438f8

Browse files
committed
Fix some minor docstring typos
1 parent 6ed3ab1 commit 13438f8

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()
@@ -1905,7 +1905,7 @@ def _array_perimeter(arr):
19051905
19061906
Examples
19071907
--------
1908-
>>> i, j = np.ogrid[:3,:4]
1908+
>>> i, j = np.ogrid[:3, :4]
19091909
>>> a = i*10 + j
19101910
>>> a
19111911
array([[ 0, 1, 2, 3],
@@ -1949,7 +1949,7 @@ def _unfold(arr, axis, size, step):
19491949
19501950
Examples
19511951
--------
1952-
>>> i, j = np.ogrid[:3,:7]
1952+
>>> i, j = np.ogrid[:3, :7]
19531953
>>> a = i*10 + j
19541954
>>> a
19551955
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)