Article view

mpl-interactions: A Python Package for Interactive Matplotlib Figures

By Ian Hunt-Isaak, John R. E. Russell, Doeke Hekstra

Article information

Publication
Published 31 January 2024
Institutions at publication
Harvard University
6 Citations OpenAlex, 3 December 2026 FULL LIST: Citations
Countries with citations No data yet
Usage Phase 3: not collected yet

Abstract

Data exploration, model building and pedagogy all benefit from the ability to interactively update elements in Matplotlib (Hunter, 2007) figures.mpl-interactions enables this by making it easy for users to create Matplotlib figures in which the displayed data can be dynamically controlled through widgets. These widgets can be automatically generated by passing arguments such as arrays or shorthands (such as a tuple of numbers to generate a slider) to modified pyplot functions. After creation of these widgets, mpl-interactions updates plot elements without further user intervention. For ease of use, it adds these features while otherwise staying close to the matplotlib.pyplotinterface.mpl-interactions is built such that parameters controlled by the generated widgets are easy to re-use for multiple plot elements, while not interfering with static elements. This design allows for building any figure that Matplotlib can produce, while adding interactivity to specific parts as desired. Complete tutorials, examples, and API documentation are available on https://mpl-interactions.readthedocs.io/en/stable/.

Citations per year

Citations per year
YearCitations
2024 0
2025 3
2026 3

OpenAlex counts citations by year for the last ten years only, so the total and the list of citing works can include earlier ones.

Works citing this article

OpenAlex counts 6 citations, but the citing work are not listed here yet: citing works are collected from OpenAlex a few at a time, and it lists most, not all, of the citations it counts.

Where its authors are based

Countries of the institutions the article's authors were affiliated to when it was published.

  • AUTHORS
  • CITATIONS No data yet
  • USAGE Phase 3
Authors by country
CountryAuthors
United States3