Skip to content

Commit 7266b54

Browse files
committed
Merge branch 'master' of github.com:glamp/bashplotlib
merged readme
2 parents 13523cb + d835adf commit 7266b54

1 file changed

Lines changed: 6 additions & 1 deletion

File tree

README.md

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,8 +32,13 @@ to your python scripts folder. This folder should be on your path (add it if it'
3232
<img src="examples/histhelp.png">
3333
<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>
3434
<img src="examples/scatterhelp.png">
35+
3536
<h5>in python</h5>
36-
<p>this is how you use it in python</p>
37+
<p>If you want to use bashplotlib from python, just import histogram and scatterplot.</p>
38+
<pre>from bashplotlib.scatterplot import plot_scatter</pre>
39+
<img src="examples/scatterplothelp.png">
40+
<pre>from bashplotlib.histogram import plot_hist</pre>
41+
<img src="examples/histogramhelp.png">
3742

3843
##examples
3944
<pre>$ scatter -f data/texas.txt --pch .</pre>

0 commit comments

Comments
 (0)