Create text-based graphs
Project description
tplot
tplot is a Python module for creating text-based graphs. Useful for visualizing data to the terminal or log files.
Features
- Scatter, line, horizontal/vertical bar, and image plotting
- Supports numerical and categorical data
- Legend
- Automatic detection of unicode support with ascii fallback
- Colors using ANSI escape characters (Windows supported)
- Few dependencies
- Lightweight
Installation
tplot is available on PyPi:
pip install tplot
Basic usage
import tplot
fig = tplot.Figure()
fig.scatter([0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10])
fig.show()
Prints:
10┤ •
│
│ •
│
8┤ •
│
│ •
│
6┤ •
│
│ •
│
4┤ •
│
│ •
│
2┤ •
│
│ •
│
0┤•
┬───────┬──────┬───────┬──────┬───────┬───────┬──────┬───────┬──────┬───────┬
0 1 2 3 4 5 6 7 8 9 10
Documentation
Documentation is available on readthedocs.
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
tplot-0.2.0.tar.gz
(11.2 kB
view details)
Built Distribution
tplot-0.2.0-py3-none-any.whl
(11.6 kB
view details)
File details
Details for the file tplot-0.2.0.tar.gz
.
File metadata
- Download URL: tplot-0.2.0.tar.gz
- Upload date:
- Size: 11.2 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: poetry/1.0.10 CPython/3.8.5 Linux/5.4.0-59-generic
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 7b3d6d68dc1a703dcbac6127f6b20562d394f6cf67825ef5407e01b2d4615dfb |
|
MD5 | a2e24146bb1aa4fc740abc42abd7fc56 |
|
BLAKE2b-256 | 258afe4498886079f6b1499b464a10c4e148feb47890f41f32ba6765db7ee951 |
File details
Details for the file tplot-0.2.0-py3-none-any.whl
.
File metadata
- Download URL: tplot-0.2.0-py3-none-any.whl
- Upload date:
- Size: 11.6 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: poetry/1.0.10 CPython/3.8.5 Linux/5.4.0-59-generic
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 412f596f120f7cf8d0c69b862d0a89e7355dda1c2b25aa10647b8c8e8fb57b52 |
|
MD5 | c4dfe069929c0c3d4cb834735ca56c28 |
|
BLAKE2b-256 | cddb2f9dc241a93c7bb3a9c4ba5266eefbc7b94eafd0dfe4fc0d4a9825d26d17 |