FazBrowse GitHub Viewer
|
Trending
|
URL:
|
Home
Tools:
[Download Repo ZIP]
[View Raw Code]
[Original HTTPS Page]
bashplotlib/examples/sample.sh at master · brianmcdonnell/bashplotlib · GitHub
brianmcdonnell
/
bashplotlib
Public
forked from
glamp/bashplotlib
Notifications
You must be signed in to change notification settings
Fork
0
Star
0
Code
Pull requests
0
Actions
Projects
Wiki
Security and quality
0
Insights
Additional navigation options
Code
Pull requests
Actions
Projects
Wiki
Security and quality
Insights
Expand file tree
Breadcrumbs
bashplotlib
/
examples
/
sample.sh
Copy path
More file actions
More file actions
Latest commit
History
History
History
executable file
·
31 lines (22 loc) · 783 Bytes
Breadcrumbs
bashplotlib
/
examples
/
sample.sh
Copy path
File metadata and controls
executable file
·
31 lines (22 loc) · 783 Bytes
Raw
Copy raw file
Download raw file
Open symbols panel
Edit and raw actions
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
#!
/usr/bin/env bash
dir=
$(
dirname
"
$0
"
)
if
[
!
-d
"
${dir}
/data
"
]
;
then
echo
'
downloading data
'
"
${dir}
/downloaddata.sh
"
fi
echo
'
plotting coordinates
'
scatter --file
"
${dir}
/data/texas.txt
"
echo
'
with x and y coords
'
scatter -x
"
${dir}
/data/x_test.txt
"
-y
"
${dir}
/data/y_test.txt
"
echo
'
plotting a histogram
'
hist --file
"
${dir}
/data/exp.txt
"
echo
'
with colors
'
hist --file
"
${dir}
/data/exp.txt
"
--colour blue
echo
'
changing the shape of the point
'
hist --file
"
${dir}
/data/exp.txt
"
--pch
.
#
echo 'using stdin'
#
curl -sL https://dl.dropbox.com/u/49171662/example.txt | hist
#
echo 'getting data from a webpage'
#
curl -s 'http://www.baseball-reference.com' |
#
grep -o -E '[$][0-9]+' | grep -o -E '[0-9]+' |
#
hist -b 20 -t 'Baseball Payrolls' --height 20 --pch '*'
Back
|
FazBrowse Home
|
New Git URL