plotting in the terminal
Project description
#bashplotlib
*plotting in the terminal*
<br><br>
<img src="examples/img/basichist.png">
##what is it?
<p>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.</p>
##installation
<h5>install with pip</h5>
<pre>
$ pip install bashplotlib
</pre>
<h5>install from source</h5>
<pre>
$ git clone git@github.com:glamp/bashplotlib.git
$ cd bashplotlib
$ python setup.py install
</pre>
<p>Either method will install the bashplotlib python package and will also add <code>hist</code> and <code>scatter</code>
to your python scripts folder. This folder should be on your path (add it if it's not).</p>
##features
<ul>
<li>quick plotting from the command line</li>
<li>customize the color, size, title, and shape of plots</li>
<li>pipe data into plots with stdin</li>
</ul>
##usage
<h5>command line</h5>
<p><code>hist</code> takes input from either stdin or specified using the -f parameter. Input should be a single column of numbers.</p>
<img src="examples/img/histhelp.png">
<p><code>scatter</code> takes x and y coordinates as input form either a comma delimited file using -f or from 2 different files using -x and -y.</p>
<img src="examples/img/scatterhelp.png">
<h5>in python</h5>
<p>If you want to use bashplotlib from python, just import histogram and scatterplot.</p>
<pre>from bashplotlib.scatterplot import plot_scatter</pre>
<img src="examples/img/scatterplothelp.png">
<pre>from bashplotlib.histogram import plot_hist</pre>
<img src="examples/img/histogramhelp.png">
##examples
<pre>$ scatter --file data/texas.txt --pch .</pre>
<img src="examples/img/texas.png">
<pre>$ hist --file data/exp.txt</pre>
<img src="examples/img/histogram.png">
<pre>$ scatter -x data/x_test.txt -y data/y_test.txt</pre>
<img src="examples/img/scatter.png">
##todo
<ul>
<li>sideways numbers for x-axis of histograms</li>
<li>colors for individual points</li>
<li>line charts</li>
<li>trendlines</li>
</ul>
*plotting in the terminal*
<br><br>
<img src="examples/img/basichist.png">
##what is it?
<p>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.</p>
##installation
<h5>install with pip</h5>
<pre>
$ pip install bashplotlib
</pre>
<h5>install from source</h5>
<pre>
$ git clone git@github.com:glamp/bashplotlib.git
$ cd bashplotlib
$ python setup.py install
</pre>
<p>Either method will install the bashplotlib python package and will also add <code>hist</code> and <code>scatter</code>
to your python scripts folder. This folder should be on your path (add it if it's not).</p>
##features
<ul>
<li>quick plotting from the command line</li>
<li>customize the color, size, title, and shape of plots</li>
<li>pipe data into plots with stdin</li>
</ul>
##usage
<h5>command line</h5>
<p><code>hist</code> takes input from either stdin or specified using the -f parameter. Input should be a single column of numbers.</p>
<img src="examples/img/histhelp.png">
<p><code>scatter</code> takes x and y coordinates as input form either a comma delimited file using -f or from 2 different files using -x and -y.</p>
<img src="examples/img/scatterhelp.png">
<h5>in python</h5>
<p>If you want to use bashplotlib from python, just import histogram and scatterplot.</p>
<pre>from bashplotlib.scatterplot import plot_scatter</pre>
<img src="examples/img/scatterplothelp.png">
<pre>from bashplotlib.histogram import plot_hist</pre>
<img src="examples/img/histogramhelp.png">
##examples
<pre>$ scatter --file data/texas.txt --pch .</pre>
<img src="examples/img/texas.png">
<pre>$ hist --file data/exp.txt</pre>
<img src="examples/img/histogram.png">
<pre>$ scatter -x data/x_test.txt -y data/y_test.txt</pre>
<img src="examples/img/scatter.png">
##todo
<ul>
<li>sideways numbers for x-axis of histograms</li>
<li>colors for individual points</li>
<li>line charts</li>
<li>trendlines</li>
</ul>
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
bashplotlib-0.5.0.tar.gz
(5.9 kB
view hashes)
Built Distribution
bashplotlib-0.5.0-py2.7.egg
(15.4 kB
view hashes)