|
8 | 8 |
|
9 | 9 | Here, an x-range can be selected on the upper axis; a detailed view of the
|
10 | 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. |
11 | 16 | """
|
12 | 17 |
|
13 | 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:: |
49 | | -# |
50 | | -# If the SpanSelector object is garbage collected you will lose the |
51 | | -# interactivity. You must keep a hard reference to it to prevent this. |
52 | | -# |
53 | | - |
54 | | - |
55 | 52 | span = SpanSelector(
|
56 | 53 | ax1,
|
57 | 54 | onselect,
|
|
0 commit comments