anyplotlib Documentation#
anyplotlib is a lightweight, interactive plotting library for Jupyter notebooks and JupyterLab,
backed by anywidget and a pure-JavaScript canvas renderer. It follows
the object-oriented Matplotlib API — create a Figure, call methods on Axes — while
delivering real-time interactivity and high performance on large datasets through canvas-based
blitting instead of SVG.
⚡ Try it out — no install needed
Drag the crosshair to update the spectrum live · press i on the image to switch to an 8×8 integration window · press s on the spectrum to filter the image by energy range.
Getting Started
New to anyplotlib? The getting started guide walks through installation and your first interactive figure in a Jupyter notebook.
API Reference
Full documentation of the anyplotlib API — Figure, Axes, plot classes,
markers, widgets, and callbacks — with parameter descriptions and type signatures.
Examples
Gallery of short, self-contained examples showing 1-D signals, 2-D images, 3-D surfaces, bar charts, interactive widgets, and more.
Performance
Why anyplotlib is fast: compact binary encoding, browser-side LUT colormapping, canvas blitting, and incremental traitlet pushes — plus an honest look at current limitations.
Benchmarking
Developer guide: running the Python and JS benchmark suites, updating baselines, best practices, and the CI strategy that makes timing comparisons hardware-agnostic.
Event System
Interactive event handling — pointer_down, pointer_settled,
key_down, and more. Includes a comparison with Matplotlib and
pygfx and an implementation-status table.
Developer Docs
Contributing guide: environment setup, architecture overview, writing tests, Sphinx documentation, and interactive Sphinx Gallery examples.