"HTML5 backends for Matplotlib compatible with Pyodide"
Project description
matplotlib-pyodide
HTML5 backends for Matplotlib compatible with Pyodide
This package includes two matplotlib backends,
- the
wasm_backend
which from allows rendering the Agg buffer as static images into an HTML canvas - an interactive HTML5 canvas backend
html5_canvas_backend
described in this blog post
Installation
This package will be installed as a dependency when you load matplotlib
in Pyodide.
Usage
To change the backend in matplotlib,
- for the wasm backend,
import matplotlib matplotlib.use("module://matplotlib_pyodide.wasm_backend")
- for the interactive HTML5 backend;
import matplotlib matplotlib.use("module://matplotlib_pyodide.html5_canvas_backend")
For more information see the matplotlib documentation.
License
pyodide-cli uses the Mozilla Public License Version 2.0.
Project details
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
matplotlib-pyodide-0.1.0.tar.gz
(18.3 kB
view hashes)
Built Distribution
Close
Hashes for matplotlib_pyodide-0.1.0-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 40c8a1208266accfa372ac386e283725d5e9c22f145ccd1a6eccfcd269f90704 |
|
MD5 | ca060ced93a81b61d2065917f0dbf74e |
|
BLAKE2b-256 | 2c2cb646885eb750fbadcd687f5444756e87af6be6309a31f7a4851c98026553 |