Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit343b013

Browse files
committed
Fix some minor docstring typos
1 parent5c58816 commit343b013

File tree

2 files changed

+7
-7
lines changed

2 files changed

+7
-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: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2908,10 +2908,10 @@ 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+
>>>
2914+
>>>rect.add_state('square')
29152915
29162916
See also: :doc:`/gallery/widgets/rectangle_selector`
29172917
"""

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp