Plot points in terminal
Project description
Terminalplot is a minimalistic packgage, that only prints points to the terminal. It does not have any dependencies.
Installation
pip install terminalplot
Usage
Command Line
Get size of terminal emulator (tty):
$ plot -s Rows: 25, Columns: 80
Plot some points:
$ plot -x '-1 0 1 2 3 4' -y '0.1 0.2 0.23 0.234 0.24'
API
Plotting a graph
from terminalplot import plot
x = range(100)
y = [i**2 for i in x]
plot(x, y)
Get size of current terminal window
from terminalplot import get_terminal_size
get_terminal_size()
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
terminalplot-0.3.0.tar.gz
(4.0 kB
view hashes)
Built Distribution
Close
Hashes for terminalplot-0.3.0-py2.py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 059ad822bdd32f47c6bb2da3ef56575267de6268084ac75533faba22846d60eb |
|
MD5 | d22202f33cf66c67aca5259f18809af0 |
|
BLAKE2b-256 | 61607bb39e2dba4e96e69c2b04a6f059665e7e307951e7851d6997688a6a2f92 |