GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — bashplotlib/examples/sample.sh at master · cadyxia/bashplotlib

Expand file tree

/

sample.sh

Copy path
More file actions
More file actions

Latest commit

 

History

History
History
executable file
·
34 lines (24 loc) · 856 Bytes
/

sample.sh

Copy path

File metadata and controls

executable file
·
34 lines (24 loc) · 856 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
32
33
34
#!/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 'adding x-labels'
hist --file "${dir}/data/exp.txt" --pch . --xlab
#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 '*'
You are visitor 01402520 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.