plotting in the terminal
Project description
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
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
Built Distribution
File details
Details for the file bashplotlib-0.6.5.tar.gz
.
File metadata
- Download URL: bashplotlib-0.6.5.tar.gz
- Upload date:
- Size: 6.2 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | b1b59be49d6254a5bd808919e0a23a75a703a02e7e84478edda765714e0bfaee |
|
MD5 | cf07c7ae1205d5b5a4b46c122edc62ce |
|
BLAKE2b-256 | aca7b0871fd1bcc38a3be7b6d0a188876e5a84c16c52f62dac9fe28418d12fe0 |
File details
Details for the file bashplotlib-0.6.5-py2.7.egg
.
File metadata
- Download URL: bashplotlib-0.6.5-py2.7.egg
- Upload date:
- Size: 16.0 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 9e92e968594436fd631d0ec21c7be45796b173979c07090a441774579baee000 |
|
MD5 | da82f83487087be907e006a9d1b704d1 |
|
BLAKE2b-256 | fa4a2368767076392aadff1963c2795097f16e9ec3d7e73b6246d440dfc2a867 |