Skip to content

Commit 8e7d6c3

Browse files
committed
Merge pull request matplotlib#3788 from jenshnielsen/widget_docs_fix
Fix Sphinx warning in widgets
2 parents 5ffada3 + cb080a3 commit 8e7d6c3

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

lib/matplotlib/widgets.py

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1255,7 +1255,7 @@ def onselect(vmin, vmax):
12551255
span = SpanSelector(ax, onselect, 'horizontal')
12561256
12571257
*onmove_callback* is an optional callback that is called on mouse
1258-
move within the span range
1258+
move within the span range
12591259
12601260
"""
12611261

@@ -1275,6 +1275,7 @@ def __init__(self, ax, onselect, direction, minspan=None, useblit=False,
12751275
If *minspan* is not *None*, ignore events smaller than *minspan*
12761276
12771277
The span rectangle is drawn with *rectprops*; default::
1278+
12781279
rectprops = dict(facecolor='red', alpha=0.5)
12791280
12801281
Set the visible attribute to *False* if you want to turn off
@@ -1283,7 +1284,7 @@ def __init__(self, ax, onselect, direction, minspan=None, useblit=False,
12831284
If *span_stays* is True, the span stays visble after making
12841285
a valid selection.
12851286
1286-
*button* is a list of integers indicating which mouse buttons should
1287+
*button* is a list of integers indicating which mouse buttons should
12871288
be used for selection. You can also specify a single
12881289
integer if only a single button is desired. Default is *None*,
12891290
which does not limit which button can be used.
@@ -1292,6 +1293,7 @@ def __init__(self, ax, onselect, direction, minspan=None, useblit=False,
12921293
1 = left mouse button
12931294
2 = center mouse button (scroll wheel)
12941295
3 = right mouse button
1296+
12951297
"""
12961298
_SelectorWidget.__init__(self, ax, onselect, useblit=useblit,
12971299
button=button)

0 commit comments

Comments
 (0)