mplcursors examples¶

As mplcursors is fundamentally a library for interactivity, you should download the examples and try them yourself :-)

../_images/sphx_glr_basic_thumb.png

mplcursors’ core functionality¶

../_images/sphx_glr_hover_thumb.png

Annotate on hover¶

../_images/sphx_glr_change_popup_color_thumb.png

Changing properties of the popup¶

../_images/sphx_glr_contour_thumb.png

Contour plots¶

../_images/sphx_glr_image_thumb.png

Cursors on images¶

../_images/sphx_glr_date_thumb.png

Datetime data¶

../_images/sphx_glr_bar_thumb.png

Display a bar’s height and name on top of it upon hovering¶

../_images/sphx_glr_artist_labels_thumb.png

Display an artist’s label instead of x, y coordinates¶

../_images/sphx_glr_labeled_points_thumb.png

Displaying a custom label for each individual point¶

../_images/sphx_glr_dataframe_thumb.png

Extracting data and labels from a DataFrame¶

../_images/sphx_glr_highlight_thumb.png

Highlighting the artist upon selection¶

../_images/sphx_glr_keyboard_shortcuts_thumb.png

Keyboard shortcuts¶

../_images/sphx_glr_paired_highlight_thumb.png

Linked artists¶

../_images/sphx_glr_scatter_thumb.png

Scatter plots are highlighted point-by-point.¶

../_images/sphx_glr_step_thumb.png

Step plots¶

../_images/sphx_glr_nondraggable_thumb.png

Using multiple annotations and disabling draggability via signals¶

Download all examples in Python source code: examples_python.zip

Download all examples in Jupyter notebooks: examples_jupyter.zip

Gallery generated by Sphinx-Gallery

mplcursors

Interactive data selection cursors for Matplotlib.

Navigation

  • Main page
  • API
  • Examples
    • mplcursors’ core functionality
    • Annotate on hover
    • Changing properties of the popup
    • Contour plots
    • Cursors on images
    • Datetime data
    • Display a bar’s height and name on top of it upon hovering
    • Display an artist’s label instead of x, y coordinates
    • Displaying a custom label for each individual point
    • Extracting data and labels from a DataFrame
    • Highlighting the artist upon selection
    • Keyboard shortcuts
    • Linked artists
    • Scatter plots are highlighted point-by-point.
    • Step plots
    • Using multiple annotations and disabling draggability via signals
©2016–present, Antony Lee. | Powered by Sphinx 2.1.2 & Alabaster 0.7.12 | Page source
Fork me on GitHub