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
Full API reference 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.0.5.tar.gz
(9.8 kB
view details)
Built Distribution
tplot-0.0.5-py3-none-any.whl
(10.0 kB
view details)
File details
Details for the file tplot-0.0.5.tar.gz
.
File metadata
- Download URL: tplot-0.0.5.tar.gz
- Upload date:
- Size: 9.8 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: poetry/1.0.10 CPython/3.8.2 Linux/5.4.0-42-generic
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 2fc6047657a485ca764a0f04a1169c88ddd99f5d0c9a1604ea53355e5b263603 |
|
MD5 | ff8e0e963f1c1261d097663f1d16c744 |
|
BLAKE2b-256 | fcb628ab96106e4f83afe6f188066501cf5dd0b86e2bbf32879810497ea6a391 |
File details
Details for the file tplot-0.0.5-py3-none-any.whl
.
File metadata
- Download URL: tplot-0.0.5-py3-none-any.whl
- Upload date:
- Size: 10.0 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: poetry/1.0.10 CPython/3.8.2 Linux/5.4.0-42-generic
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 82cdc15bc7bdb774fc11369737879b3d1730cdb891e24797d29e458cea8c5a90 |
|
MD5 | ef3c887f7a0a920353fe1ed2659495b5 |
|
BLAKE2b-256 | 0e5e3d504db49037a3bc17a8663ab99ae96ce830e600660b120db302fa2e8a42 |