Skip to main content

plotting in the terminal

what is it?

bashplotlib is a python package and command line tool for making basic plots in the terminal. It’s a quick way to visualize data when you don’t have a GUI. It’s written in pure python and can quickly be installed anywhere using pip.

installation

install with pip

$ pip install bashplotlib

install from source

$ git clone git@github.com:glamp/bashplotlib.git
$ cd bashplotlib
$ python setup.py install

Either method will install the bashplotlib python package and will also add hist and scatter to your python scripts folder. This folder should be on your path (add it if it’s not).

features

  • quick plotting from the command line

  • customize the color, size, title, and shape of plots

  • pipe data into plots with stdin

usage

command line

hist takes input from either stdin or specified using the -f parameter. Input should be a single column of numbers. scatter takes x and y coordinates as input form either a comma delimited file using -f or from 2 different files using -x and -y.

in python

If you want to use bashplotlib from python, just import histogram and scatterplot.

from bashplotlib.scatterplot import plot_scatter
from bashplotlib.histogram import plot_hist

examples

$ scatter --file data/texas.txt --pch .
$ hist --file data/exp.txt
$ scatter -x data/x_test.txt -y data/y_test.txt

todo

  • sideways numbers for x-axis of histograms

  • colors for individual points

  • line charts

  • trendlines

Release files for bashplotlib 0.6.5

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for bashplotlib 0.6.5
File Size Uploaded
bashplotlib-0.6.5.tar.gz 6.2 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for bashplotlib 0.6.5
File Interpreter ABI Platform
bashplotlib-0.6.5-py2.7.egg Legacy Egg format - - Details

Total release size: 22.2 kB

Release files / bashplotlib-0.6.5.tar.gz

Download URL bashplotlib-0.6.5.tar.gz
Size 6.2 kB
Tags Source
SHA-256 checksum
How to use checksums
b1b59be49d6254a5bd808919e0a23a75a703a02e7e84478edda765714e0bfaee
BLAKE2b-256 checksum
How to use checksums
aca7b0871fd1bcc38a3be7b6d0a188876e5a84c16c52f62dac9fe28418d12fe0
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No

Release files / bashplotlib-0.6.5-py2.7.egg

Download URL bashplotlib-0.6.5-py2.7.egg
Size 16.0 kB
Tags Egg
SHA-256 checksum
How to use checksums
9e92e968594436fd631d0ec21c7be45796b173979c07090a441774579baee000
BLAKE2b-256 checksum
How to use checksums
fa4a2368767076392aadff1963c2795097f16e9ec3d7e73b6246d440dfc2a867
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No

Release history Release notifications | RSS feed

This release

0.6.5 This release

2 release files

0.6.4

2 release files

0.6.3

2 release files

0.6.1

2 release files

0.6.0

2 release files

0.5.3

2 release files

0.5.2

2 release files

0.5.1

2 release files

0.5.0

2 release files

0.4.4

1 release file

0.4.3

1 release file

0.4.2

1 release file

0.4.1

1 release file

0.4.0

1 release file

0.3.8

1 release file

0.3.7

1 release file

0.3.6

1 release file

0.3.5

1 release file

0.3.4

1 release file

0.3.3

1 release file

0.3.2

1 release file

0.3.1

1 release file

0.3.0

1 release file

0.2.3

1 release file

0.2.2

1 release file

0.2.1

1 release file

0.2.0

1 release file

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page