Skip to content

maxplotlib

Install from PyPI with

pip install maxplotlibx

Build a canvas with a familiar axes API, then render it with a selected backend:

import numpy as np
from maxplotlib import Canvas
x = np.linspace(0, 2 * np.pi, 200)
canvas, ax = Canvas.subplots()
ax.plot(x, np.sin(x), label="sin(x)")
ax.plot(x, np.cos(x), label="cos(x)")
ax.legend()
canvas.show()

The same figure can be rendered with Matplotlib, Plotly, plotext, or TikZ, keeping data and figure construction separate from the output backend.

A sine curve rendered with maxplotlib

You can find the documentation and examples here.

Check out the code on GitHub!

Links:

From the documentation

Last updated: