The Wayback Machine - https://web.archive.org/web/20190323051108/https://github.com/glamp/bashplotlib
Skip to content
plotting in the terminal
Branch: master
Clone or download
glamp Merge pull request #43 from kennethgoodman/master
added functionality to pass in lists to scatter
Latest commit f753317 Jan 2, 2019
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
bashplotlib Merge branch 'master' into master Jan 2, 2019
bin Include from __future__ print_function Jun 4, 2016
examples Added sample with x-labels. Dec 7, 2018
.gitignore updated gitignore Jan 30, 2013
LICENSE.txt updated license Feb 4, 2013
MANIFEST changed format to real python package Jan 30, 2013
README.md
README.rst fixing flag for demo May 22, 2014
release.sh fixing up pypi May 27, 2014
setup.py Fix several ResourceWarnings: unclose file Jan 2, 2019

README.md

bashplotlib

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 [email protected]: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
You can’t perform that action at this time.