Skip to main content

Interactive data cursors for Matplotlib

Project description

``mpldatacursor`` provides interactive "data cursors" (clickable annotation boxes) for matplotlib.

Basic Usage
``mpldatacursor`` offers a few different styles of interaction. The basic
``DataCursor`` displays the x, y coordinates of the selected artist in an
annotation box. ``DraggableDataCursor`` allows the annotation box to be
dragged to a new position after creation, and ``HighlightingDataCursor``
highlights a ``Line2D`` artist in addition to displaying the selected
coordinates. Selected image values can be displayed using ``ImageDataCursor``.

As an example::

import matplotlib.pyplot as plt
import numpy as np
from mpldatacursor import datacursor

data = np.outer(range(10), range(1, 5))

fig, ax = plt.subplots()
lines = ax.plot(data)
ax.set_title('Click somewhere on a line')


.. image::
:align: center

Project details

Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Files for mpldatacursor, version 0.1
Filename, size File type Python version Upload date Hashes
Filename, size mpldatacursor-0.1.tar.gz (4.0 kB) File type Source Python version None Upload date Hashes View

Supported by

AWS AWS Cloud computing Datadog Datadog Monitoring Facebook / Instagram Facebook / Instagram PSF Sponsor Fastly Fastly CDN Google Google Object Storage and Download Analytics Huawei Huawei PSF Sponsor Microsoft Microsoft PSF Sponsor NVIDIA NVIDIA PSF Sponsor Pingdom Pingdom Monitoring Salesforce Salesforce PSF Sponsor Sentry Sentry Error logging StatusPage StatusPage Status page