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

Appearance settings

Commit 68a0365

Browse filesBrowse files
committed
Fix SpanSelector docstring.
1. blitting is available on most backends. 2. join a line that didn't need to be wrapped.
1 parent 3c3e8ba commit 68a0365
Copy full SHA for 68a0365

File tree

Expand file treeCollapse file tree

1 file changed

+5
-7
lines changed
Filter options
Expand file treeCollapse file tree

1 file changed

+5
-7
lines changed

‎lib/matplotlib/widgets.py

Copy file name to clipboardExpand all lines: lib/matplotlib/widgets.py
+5-7Lines changed: 5 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1259,11 +1259,10 @@ class Cursor(AxesWidget):
12591259
def __init__(self, ax, horizOn=True, vertOn=True, useblit=False,
12601260
**lineprops):
12611261
"""
1262-
Add a cursor to *ax*. If ``useblit=True``, use the backend-
1263-
dependent blitting features for faster updates (GTKAgg
1264-
only for now). *lineprops* is a dictionary of line properties.
1262+
Add a cursor to *ax*. If ``useblit=True``, use the backend-dependent
1263+
blitting features for faster updates. *lineprops* is a dictionary of
1264+
line properties.
12651265
"""
1266-
# TODO: Is the GTKAgg limitation still true?
12671266
AxesWidget.__init__(self, ax)
12681267

12691268
self.connect_event('motion_notify_event', self.onmove)
@@ -1685,8 +1684,7 @@ class SpanSelector(_SelectorWidget):
16851684
Visually select a min/max range on a single axis and call a function with
16861685
those values.
16871686
1688-
To guarantee that the selector remains responsive, keep a reference to
1689-
it.
1687+
To guarantee that the selector remains responsive, keep a reference to it.
16901688
16911689
In order to turn off the SpanSelector, set `span_selector.active=False`. To
16921690
turn it back on, set `span_selector.active=True`.
@@ -1705,7 +1703,7 @@ class SpanSelector(_SelectorWidget):
17051703
17061704
useblit : bool, default is False
17071705
If True, use the backend-dependent blitting features for faster
1708-
canvas updates. Only available for GTKAgg right now.
1706+
canvas updates.
17091707
17101708
rectprops : dict, default is None
17111709
Dictionary of :class:`matplotlib.patches.Patch` properties

0 commit comments

Comments
0 (0)
Morty Proxy This is a proxified and sanitized view of the page, visit original site.