MatplotviteΒΆ

Matplotvite renders matplotlib-style static figures with a Rust renderer and NumPy as its only runtime dependency.

The native implementation is split into three crates: matplotvite-core owns the drawing model, layout, rasterisation and export pipeline and builds without Python; matplotvite exposes the native Figure/Axes builder; and matplotvite-py is the thin PyO3 extension used by this package. See architecture.md for the module map and data flow.

The compatibility surface includes a pandas plotting backend, a checked-in 526-case Matplotlib corpus with SHA-256 image hashes, and pixel-diff coverage for six thin Seaborn wrappers. See Pandas plotting backend for dataframe plotting and Parity evidence for the evidence and regeneration commands.

import numpy as np
import matplotvite as plt

fig, ax = plt.subplots()
ax.plot(np.arange(5), np.arange(5) ** 2)
fig.savefig("plot.png")

Reference