From 68a0365358a0961504b319ad63fc0fc71b4f0939 Mon Sep 17 00:00:00 2001 From: Antony Lee Date: Sat, 28 Oct 2017 01:11:06 -0700 Subject: [PATCH] Fix SpanSelector docstring. 1. blitting is available on most backends. 2. join a line that didn't need to be wrapped. --- lib/matplotlib/widgets.py | 12 +++++------- 1 file changed, 5 insertions(+), 7 deletions(-) diff --git a/lib/matplotlib/widgets.py b/lib/matplotlib/widgets.py index 1af736df6053..5ac6986926f6 100644 --- a/lib/matplotlib/widgets.py +++ b/lib/matplotlib/widgets.py @@ -1259,11 +1259,10 @@ class Cursor(AxesWidget): def __init__(self, ax, horizOn=True, vertOn=True, useblit=False, **lineprops): """ - Add a cursor to *ax*. If ``useblit=True``, use the backend- - dependent blitting features for faster updates (GTKAgg - only for now). *lineprops* is a dictionary of line properties. + Add a cursor to *ax*. If ``useblit=True``, use the backend-dependent + blitting features for faster updates. *lineprops* is a dictionary of + line properties. """ - # TODO: Is the GTKAgg limitation still true? AxesWidget.__init__(self, ax) self.connect_event('motion_notify_event', self.onmove) @@ -1685,8 +1684,7 @@ class SpanSelector(_SelectorWidget): Visually select a min/max range on a single axis and call a function with those values. - To guarantee that the selector remains responsive, keep a reference to - it. + To guarantee that the selector remains responsive, keep a reference to it. In order to turn off the SpanSelector, set `span_selector.active=False`. To turn it back on, set `span_selector.active=True`. @@ -1705,7 +1703,7 @@ class SpanSelector(_SelectorWidget): useblit : bool, default is False If True, use the backend-dependent blitting features for faster - canvas updates. Only available for GTKAgg right now. + canvas updates. rectprops : dict, default is None Dictionary of :class:`matplotlib.patches.Patch` properties