We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent b2de5a5 commit 0e982d7Copy full SHA for 0e982d7
examples/widgets/span_selector.py
@@ -8,6 +8,11 @@
8
9
Here, an x-range can be selected on the upper axis; a detailed view of the
10
selected range is then plotted on the lower axis.
11
+
12
+.. note::
13
14
+ If the SpanSelector object is garbage collected you will lose the
15
+ interactivity. You must keep a hard reference to it to prevent this.
16
"""
17
18
import numpy as np
@@ -44,14 +49,6 @@ def onselect(xmin, xmax):
44
49
fig.canvas.draw_idle()
45
50
46
51
47
-#############################################################################
48
-# .. note::
-#
-# If the SpanSelector object is garbage collected you will lose the
-# interactivity. You must keep a hard reference to it to prevent this.
52
53
-
54
55
span = SpanSelector(
56
ax1,
57
onselect,
0 commit comments