README.pod contains graphical images for the website

This commit is contained in:
Dima Kogan
2024-02-19 20:55:29 -08:00
parent 2db7f980b5
commit 2d8344f32d
4 changed files with 399 additions and 47 deletions

View File

@@ -21,56 +21,40 @@ Simple plotting of piped data:
10 25
$ seq 5 | awk '{print 2*$1, $1*$1}' |
feedgnuplot --lines --points --legend 0 "data 0" --title "Test plot" --y2 1
--unset grid --terminal 'dumb 80,40' --exit
feedgnuplot \
--lines \
--points \
--title "Test plot" \
--y2 1 \
--unset key \
--unset grid \
--terminal 'dumb 80,40' \
--exit
Test plot
10 +-----------------------------------------------------------------+ 25
| + + + + + + + *##|
| data 0 ***A*#* |
| ** # |
9 |-+ ** ## |
| ** # |
| ** # |
| ** ## +-| 20
8 |-+ A # |
| ** # |
| ** ## |
| ** # |
| ** B |
7 |-+ ** ## |
| ** ## +-| 15
| ** # |
| ** ## |
6 |-+ *A ## |
| ** ## |
| ** # |
| ** ## +-| 10
5 |-+ ** ## |
| ** #B |
| ** ## |
| ** ## |
4 |-+ A ### |
| ** ## |
| ** ## +-| 5
| ** ## |
| ** ##B# |
3 |-+ ** #### |
| **#### |
| #### |
|## + + + + + + + |
2 +-----------------------------------------------------------------+ 0
1 1.5 2 2.5 3 3.5 4 4.5 5
Here we asked for ASCII plotting, which is useful for documentation.
=for html <p><img src="documentation-header-plot.svg">
Simple real-time plotting example: plot how much data is received on the wlan0
network interface in bytes/second (uses bash, awk and Linux):
network interface in bytes/second. This plot updates at 1Hz, and shows the last
10sec of history. The plot shown here is the final state of a sample run
$ while true; do sleep 1; cat /proc/net/dev; done |
gawk '/wlan0/ {if(b) {print $2-b; fflush()} b=$2}' |
feedgnuplot --lines --stream --xlen 10 --ylabel 'Bytes/sec' --xlabel seconds
$ while true; do
sleep 1;
cat /proc/net/dev;
done \
| gawk '/wlan0/ {if(b) {print $2-b; N++; fflush()} b=$2} N==15 {exit}' \
| feedgnuplot \
--lines \
--title "wlan0 throughput" \
--stream \
--xlen 10 \
--ylabel 'Bytes/sec' \
--xlabel seconds \
--unset key \
--unset grid \
--terminal 'dumb 80,40' \
--exit
=for html <p><img src="documentation-header-network-throughput-plot.svg">
=head1 DESCRIPTION