tplot
tplot is a Python package for creating text-based graphs. Useful for visualizing data to the terminal or log files.
Features
- Scatter plots, line plots, horizontal/vertical bar plots, and image plots
- Supports numerical and categorical data
- Legend
- Unicode characters (with automatic ascii fallback)
- Colors
- Few dependencies
- Fast and lightweight
- Doesn't take over your terminal (only prints strings)
Installation
tplot is available on PyPi:
pip install tplot
Documentation
Documentation is available on readthedocs.
Examples
Basic usage
import tplot
fig = tplot.Figure()
fig.scatter([0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10])
fig.show()
A more advanced example
import tplot
import numpy as np
x = np.linspace(start=0, stop=np.pi*3, num=80)
fig = tplot.Figure(
xlabel="Phase",
ylabel="Amplitude",
title="Trigonometric functions",
legendloc="bottomleft",
width=60,
height=15,
)
fig.line(x, y=np.sin(x), color="red", label="sin(x)")
fig.line(x, y=np.cos(x), color="blue", label="cos(x)")
fig.show()
See more examples in the documentation.
Contributing
Contributions are welcome. Bug fixes, feature suggestions, documentation improvements etc. can be contributed via issues and/or pull requests.
Metadata
Release files for tplot 0.3.6
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 |
|---|---|---|---|---|
| tplot-0.3.6.tar.gz | 269.3 kB | Without provenance | Details for tplot-0.3.6.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| tplot-0.3.6-py3-none-any.whl | Python 3 | none | any | Details for tplot-0.3.6-py3-none-any.whl |
Total release size: 282.8 kB
Release files / tplot-0.3.6.tar.gz
| Download URL | tplot-0.3.6.tar.gz |
|---|---|
| Size | 269.3 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
6b3564f591679e728d441693d0266630f5333210984d0a16de87f2d47ce21790
|
|
BLAKE2b-256 checksum How to use checksums |
7ac37c2b8c7e8e71b17d5a7292a1233b82bb95292153c49ad236b90b0d3f0b23
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
python-requests/2.31.0
|
Release files / tplot-0.3.6-py3-none-any.whl
| Download URL | tplot-0.3.6-py3-none-any.whl |
|---|---|
| Size | 13.5 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
19950e3d2c2983f4db6f9c6795d3284a0b72ec9773f69ab15df20eac612d16f7
|
|
BLAKE2b-256 checksum How to use checksums |
b56a51a89343b3dc5a6d7438686c3609110f54dbc6f91df4f603163d40dafa63
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
python-requests/2.31.0
|
Security for tplot 0.3.6
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.