{ "cells": [ { "cell_type": "markdown", "metadata": {}, "source": [ "\n# Annotated cursor\n\nDisplay a data cursor including a text box, which shows the plot point close\nto the mouse pointer.\n\nThe new cursor inherits from `~matplotlib.widgets.Cursor` and demonstrates the\ncreation of new widgets and their event callbacks.\n\nSee also the :doc:`cross hair cursor\n`, which implements a cursor tracking the\nplotted data, but without using inheritance and without displaying the\ncurrently tracked coordinates.\n\n
The figure related to this example does not show the cursor, because that\n figure is automatically created in a build queue, where the first mouse\n movement, which triggers the cursor creation, is missing.