Skip to content

Commit

Permalink
making code into blocks
Browse files Browse the repository at this point in the history
  • Loading branch information
Greg authored and Greg committed Jan 26, 2014
1 parent b98d659 commit 2c5df4c
Showing 1 changed file with 15 additions and 5 deletions.
20 changes: 15 additions & 5 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -37,19 +37,29 @@ to your python scripts folder. This folder should be on your path (add it if it'

### in python
If you want to use bashplotlib from python, just import histogram and scatterplot.
`from bashplotlib.scatterplot import plot_scatter`
```
from bashplotlib.scatterplot import plot_scatter
```
<img src="examples/img/scatterplothelp.png">
`from bashplotlib.histogram import plot_hist`
```
from bashplotlib.histogram import plot_hist
```
<img src="examples/img/histogramhelp.png">

##examples
`$ scatter --file data/texas.txt --pch .`
```
$ scatter --file data/texas.txt --pch .
```
<img src="examples/img/texas.png">

`$ hist --file data/exp.txt`
```
$ hist --file data/exp.txt
```
<img src="examples/img/histogram.png">

`$ scatter -x data/x_test.txt -y data/y_test.txt`
```
$ scatter -x data/x_test.txt -y data/y_test.txt
```
<img src="examples/img/scatter.png">

##todo
Expand Down

0 comments on commit 2c5df4c

Please sign in to comment.