Skip to content

Commit 4cfe922

Browse files
authored
Merge pull request #23310 from timhoffm/move-example
Move Cursor demo from examples/misc to examples/event_handling
2 parents ae67ac8 + 0d89db3 commit 4cfe922

File tree

2 files changed

+5
-3
lines changed

2 files changed

+5
-3
lines changed

examples/misc/cursor_demo.py renamed to examples/event_handling/cursor_demo.py

+2
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,8 @@
2121
2222
__ https://github.com/joferkington/mpldatacursor
2323
__ https://github.com/anntzer/mplcursors
24+
25+
.. redirect-from:: /gallery/misc/cursor_demo
2426
"""
2527

2628
import matplotlib.pyplot as plt

examples/widgets/annotated_cursor.py

+3-3
Original file line numberDiff line numberDiff line change
@@ -10,9 +10,9 @@
1010
creation of new widgets and their event callbacks.
1111
1212
See also the :doc:`cross hair cursor
13-
</gallery/misc/cursor_demo>`, which implements a cursor tracking the plotted
14-
data, but without using inheritance and without displaying the currently
15-
tracked coordinates.
13+
</gallery/event_handling/cursor_demo>`, which implements a cursor tracking the
14+
plotted data, but without using inheritance and without displaying the
15+
currently tracked coordinates.
1616
1717
.. note::
1818
The figure related to this example does not show the cursor, because that

0 commit comments

Comments
 (0)