From 9be6284db6b4d7769a78eca5152cc5d8f82f8f56 Mon Sep 17 00:00:00 2001 From: Oscar Gustafsson Date: Wed, 28 Sep 2022 19:45:41 +0200 Subject: [PATCH] Backport PR #24032: Reword SpanSelector example. --- examples/widgets/span_selector.py | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/examples/widgets/span_selector.py b/examples/widgets/span_selector.py index a9d0cc4960bb..940948719d82 100644 --- a/examples/widgets/span_selector.py +++ b/examples/widgets/span_selector.py @@ -3,9 +3,13 @@ Span Selector ============= -The SpanSelector is a mouse widget to select a xmin/xmax range and plot the -detail view of the selected region in the lower axes +The `.SpanSelector` is a mouse widget that enables selecting a range on an +axis. + +Here, an x-range can be selected on the upper axis; a detailed view of the +selected range is then plotted on the lower axis. """ + import numpy as np import matplotlib.pyplot as plt from matplotlib.widgets import SpanSelector