This release is a pre-release and may not be stable for production use.
matplotlib-terminal
Matplotlib backend to plot in terminal using matrach/img2unicode
This is in proof of concept stage, so stay tuned!
The library is optimized for Gnome Terminal with Ubuntu Mono font.
Nevertheless 'block' and 'braille' renderers should work with most modern terminals.
Install it with:
$ pip install matplotlib-terminal
To speed ~10x up the braille and gamma renderers, install an optional dependency of img2unicode:
$ pip install 'img2unicode[n2]'
Usage:
import matplotlib_terminal
import matplotlib.pyplot as plt
# Or in short:
# from matplotlib_terminal import plt
plt.plot([0, 1], [0, 1])
plt.plot([1, 0], [0, 1], lw=3)
plt.scatter([0], [.5])
plt.show()
plt.show('gamma') # Use RendererGamma-fast/noblock from img2unicode renderer
plt.show('block') # Use Renderer-fast/block from img2unicode, dual color!
plt.show('braille') # Use RendererGamma-fast/braille from img2unicode renderer
plt.close()
Sample results
Gamma renderer:
Block renderer:
Braille renderer:
TODO
- figure out how to configure the lib in matplotlib-ish way (eg. rcParams)
- allow to specify figure size in terms of cells
Metadata
Release files for matplotlib-terminal 0.1a4
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| matplotlib-terminal-0.1a4.tar.gz | 3.9 kB | Without provenance | Details for matplotlib-terminal-0.1a4.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| matplotlib_terminal-0.1a4-py3-none-any.whl | Python 3 | none | any | Details for matplotlib_terminal-0.1a4-py3-none-any.whl |
Total release size: 9.1 kB
Release files / matplotlib-terminal-0.1a4.tar.gz
| Download URL | matplotlib-terminal-0.1a4.tar.gz |
|---|---|
| Size | 3.9 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
1876ed41221d2a49c6b0a002eb6b2b3417a73bb16c687baab8094140cc4bd458
|
|
BLAKE2b-256 checksum How to use checksums |
19f8b42ad115aa0ce52da3f98946f3dbbce5d02e24b19b03932e10375e55a909
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/3.4.2 importlib_metadata/4.8.1 pkginfo/1.7.1 requests/2.23.0 requests-toolbelt/0.9.1 tqdm/4.45.0 CPython/3.7.0
|
Release files / matplotlib_terminal-0.1a4-py3-none-any.whl
| Download URL | matplotlib_terminal-0.1a4-py3-none-any.whl |
|---|---|
| Size | 5.2 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
fc762b1a4adf86bfbeac3423390a8bdb934368078a6ac85bea1b54ed58a709a7
|
|
BLAKE2b-256 checksum How to use checksums |
cd87178688c9d3d8aa6e22b3e7c9a965a06c27413e9a1b6738a52a9fccea7c09
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/3.4.2 importlib_metadata/4.8.1 pkginfo/1.7.1 requests/2.23.0 requests-toolbelt/0.9.1 tqdm/4.45.0 CPython/3.7.0
|
Security for matplotlib-terminal 0.1a4
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.