Generate simple visualizations on terminal.
Project description
graphby
Generate simple visualizations on terminal.
Import
graphby can now be used on your Python projects through PyPi by running pip command on a Python-ready environment.
pip import --upgrade graphby
Usage
1. Import package
from graphby import Bar
2. Basic usage
from graphby import Bar
labels = ["a", "b", "c", "d"]
values = [1, 2, 3, 4]
Bar(labels, values).plot()
---
a: ** 1
b: ***** 2
c: ******** 3
d: ********** 4
3. Negative numbers
from graphby import Bar
labels = ["a", "b", "c", "d"]
values = [200, -350, 20, 999]
Bar(labels, values).plot()
---
a: **** 200
b: -350
c: *** 20
d: ********** 999
4. Custom symbol
from graphby import Bar
labels = ["a", "b", "c", "d"]
values = [200, -350, 20, 999]
Bar(labels, values, bar="+").plot()
---
a: ++++ 200
b: -350
c: +++ 20
d: ++++++++++ 999
5. Expand graph
from graphby import Bar
labels = ["a", "b", "c", "d"]
values = [200, -350, 20, 999]
Bar(labels, values, limit=15).plot()
---
a: ****** 200
b: -350
c: **** 20
d: *************** 999
6. Customizations
from graphby import Bar
labels = ["a", "b", "c", "d"]
values = [200, -350, 20, 999]
Bar(labels, values, bar="#", limit=5).plot()
---
a: ## 200
b: -350
c: # 20
d: ##### 999
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
graphby-0.0.3.tar.gz
(3.2 kB
view details)
Built Distribution
File details
Details for the file graphby-0.0.3.tar.gz
.
File metadata
- Download URL: graphby-0.0.3.tar.gz
- Upload date:
- Size: 3.2 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.2.0 pkginfo/1.5.0.1 requests/2.24.0 setuptools/50.3.0 requests-toolbelt/0.9.1 tqdm/4.50.0 CPython/3.8.0
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | d1d62b798c0fa4da0585c3110d1bf239664e0b5ecd73c5fc8834ffe345fed901 |
|
MD5 | 582f943f1b9ba53ed237c47feb24ab7b |
|
BLAKE2b-256 | 8791a930c1dddded56139119a29181aac672c72f94b91f92ff68ffff709b9cea |
File details
Details for the file graphby-0.0.3-py3-none-any.whl
.
File metadata
- Download URL: graphby-0.0.3-py3-none-any.whl
- Upload date:
- Size: 4.1 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.2.0 pkginfo/1.5.0.1 requests/2.24.0 setuptools/50.3.0 requests-toolbelt/0.9.1 tqdm/4.50.0 CPython/3.8.0
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 0a25fd3549b6bf44c8ccd64349a29790df5c74ff840696a00ba3815749104e90 |
|
MD5 | 4148b5bbf12a4c7039043485c736533e |
|
BLAKE2b-256 | e477960c169fba6ba018dadd0a960f898679331ba7cec28c6f5512da41907cfa |