maxplotlib
Install from PyPI with
pip install maxplotlibxBuild a canvas with a familiar axes API, then render it with a selected backend:
import numpy as npfrom 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.

You can find the documentation and examples here.
Links:




