|
1 | 1 | #bashplotlib |
2 | 2 | *plotting in the terminal* |
3 | 3 | <br><br> |
4 | | -<img src="examples/basichist.png"> |
| 4 | +<img src="examples/img/basichist.png"> |
5 | 5 |
|
6 | 6 | ##what is it? |
7 | 7 | <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> |
@@ -31,29 +31,29 @@ to your python scripts folder. This folder should be on your path (add it if it' |
31 | 31 | ##usage |
32 | 32 | <h5>command line</h5> |
33 | 33 | <p><code>hist</code> takes input from either stdin or specified using the -f parameter. Input should be a single column of numbers.</p> |
34 | | -<img src="examples/histhelp.png"> |
| 34 | +<img src="examples/img/histhelp.png"> |
35 | 35 | <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> |
36 | | -<img src="examples/scatterhelp.png"> |
| 36 | +<img src="examples/img/scatterhelp.png"> |
37 | 37 |
|
38 | 38 | <h5>in python</h5> |
39 | 39 | <p>If you want to use bashplotlib from python, just import histogram and scatterplot.</p> |
40 | 40 | <pre>from bashplotlib.scatterplot import plot_scatter</pre> |
41 | | -<img src="examples/scatterplothelp.png"> |
| 41 | +<img src="examples/img/scatterplothelp.png"> |
42 | 42 | <pre>from bashplotlib.histogram import plot_hist</pre> |
43 | | -<img src="examples/histogramhelp.png"> |
| 43 | +<img src="examples/img/histogramhelp.png"> |
44 | 44 |
|
45 | 45 | ##examples |
46 | 46 | <pre>$ scatter -f data/texas.txt --pch .</pre> |
47 | | -<img src="examples/texas.png"> |
| 47 | +<img src="examples/img/texas.png"> |
48 | 48 |
|
49 | 49 | <pre>$ hist data/exp.txt</pre> |
50 | | -<img src="examples/histogram.png"> |
| 50 | +<img src="examples/img/histogram.png"> |
51 | 51 |
|
52 | 52 | <pre>$ scatter -x data/x_test.txt -y data/y_test.txt</pre> |
53 | | -<img src="examples/scatter.png"> |
| 53 | +<img src="examples/img/scatter.png"> |
54 | 54 |
|
55 | 55 | <pre>$ cat data/lower48.txt | scatter -s 40 --pch .</pre> |
56 | | -<img src="examples/usa.png"> |
| 56 | +<img src="examples/img/usa.png"> |
57 | 57 |
|
58 | 58 | ##todo |
59 | 59 | <ul> |
|
0 commit comments