Skip to content

Commit fb0703f

Browse files
committed
added download script
1 parent 1368b4f commit fb0703f

File tree

3 files changed

+22
-13
lines changed

3 files changed

+22
-13
lines changed

examples/downloaddata.sh

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1 +1,9 @@
1+
mkdir data
2+
cd data
13
curl https://dl.dropbox.com/sh/jjeubxlxuqkzkeq/5W6zkUZXww/million.txt?dl=1 > million.txt
4+
curl https://dl.dropbox.com/s/yuxlaj8okcjta9t/exp.txt?dl=1 > exp.txt
5+
curl https://dl.dropbox.com/s/cbf5skx34grlwy6/lower48.txt?dl=1 > lower48.txt
6+
curl https://dl.dropbox.com/s/gsu2y9vqnx5ps5i/texas.txt?dl=1 > texas.txt
7+
curl https://dl.dropbox.com/s/4zws1nbamorcy9z/x_test.txt?dl=1 > x_test.txt
8+
curl https://dl.dropbox.com/s/mlt4gfqr6n24kxj/y_test.txt?dl=1 > y_test.txt
9+

examples/sample.sh

Lines changed: 13 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -1,22 +1,23 @@
1-
#plotting coordinates
2-
scatter -f ../data/texas.txt
1+
echo plotting coordinates
32

4-
#with x and y coords
5-
scatter -x ../data/x_test.txt -y ../data/y_test.txt
3+
scatter --file ./data/texas.txt
64

7-
#plotting a histogram
8-
hist -f ../data/exp.txt
5+
echo with x and y coords
6+
scatter -x ./data/x_test.txt -y ./data/y_test.txt
97

10-
#with colors
11-
hist -f ../data/exp.txt -c blue
8+
echo plotting a histogram
9+
hist --file ./data/exp.txt
1210

13-
#changing the shape of the point
14-
hist -f ../data/exp.txt -p .
11+
echo with colors
12+
hist --file ./data/exp.txt --colour blue
1513

16-
#using stdin
14+
echo changing the shape of the point
15+
hist --file ./data/exp.txt --pch .
16+
17+
echo using stdin
1718
curl https://dl.dropbox.com/u/49171662/example.txt | hist
1819

19-
#getting data from a webpage
20+
echo getting data from a webpage
2021
curl http://www.baseball-reference.com/ \
2122
| grep -o -E "[$]([0-9]+)" | grep -o -E "[0-9]+" \
2223
| hist -b 20 -t "Baseball Payrolls" --height 20 --pch "*"

setup.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33

44
setup(
55
name="bashplotlib",
6-
version="0.3.8",
6+
version="0.3.9",
77
author="Greg Lamp",
88
author_email="lamp.greg@gmail.com",
99
url="https://github.com/glamp/bashplotlib",

0 commit comments

Comments
 (0)