Skip to main content

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


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 hashes)

Uploaded Source

Built Distribution

graphby-0.0.3-py3-none-any.whl (4.1 kB view hashes)

Uploaded Python 3

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page