diff options
author | Stefan Kost <ensonic@users.sf.net> | 2011-07-24 22:32:54 +0200 |
---|---|---|
committer | Stefan Kost <ensonic@users.sf.net> | 2011-07-24 22:32:54 +0200 |
commit | 68e3d784406b7e661a37ffe7a1e2da1346681296 (patch) | |
tree | f4265bd4c24c6ddc2e94e8038810978effdbd51f | |
parent | 5ed9573433fa659db9f41153410adb95a8e73cb8 (diff) |
plot: improve layout in combined plor and fix axislabels
-rwxr-xr-x | src/gsttl_plot1.sh | 21 |
1 files changed, 10 insertions, 11 deletions
diff --git a/src/gsttl_plot1.sh b/src/gsttl_plot1.sh index 0322a31..632bf99 100755 --- a/src/gsttl_plot1.sh +++ b/src/gsttl_plot1.sh @@ -1,7 +1,6 @@ #!/bin/bash # dumps a gnuplot script to stdout that does a plot of the given logs # -# some of the logs are per element (msg, qry), other (pad, ev) are per pad usage="\ Usage: gsttl_plot.sh [--title=<title>] [--base==<basedir>] [--format={png,pdf,ps,svg}] [--pagesize={a3,a4}]| gnuplot" @@ -34,8 +33,6 @@ if [ ! -e $base ]; then exit 1 fi -num_padlogs=`ls -1 $base/pad*.log | wc -l` - # layout plot_width=6400 plot_height=600 @@ -65,15 +62,17 @@ set rmargin 20 set pointsize 1.0 -unset xlabel -unset xtics set xlabel "Time (sec.msec)" -set ytics nomirror autofreq +set xtics nomirror autofreq set xtics format "%g" +set mxtics 10 set xrange [0:$last_ts] -set ylabel "Pads" + +set ylabel "Elements" set ytics nomirror autofreq +set myticks 10 set yrange [*:*] + set grid set key box @@ -81,10 +80,10 @@ plot \\ '$base/data.log' using 2:9:yticlabels(10) axes x1y1 with points title 'data', \\ '$base/caps_get.log' using 2:3:yticlabels(4) axes x1y1 with points title 'get', \\ '$base/caps_set.log' using 2:3:yticlabels(4) axes x1y1 with points title 'set', \\ - '$base/ev_eos.log' using 2:7:(0):(\$9-\$7):yticlabels(6) axes x1y1 with vectors title 'eos', \\ - '$base/ev_newsegment.log' using 2:7:(0):(\$9-\$7):yticlabels(6) axes x1y1 with vectors title 'newsegment', \\ - '$base/ev_seek.log' using 2:7:(0):(\$9-\$7):yticlabels(6) axes x1y1 with vectors title 'seek', \\ - '$base/ev_tag.log' using 2:7:(0):(\$9-\$7):yticlabels(6) axes x1y1 with vectors title 'tag', \\ + '$base/ev_eos.log' using 2:7:(0):(\$9-\$7):yticlabels(8) axes x1y1 with vectors title 'eos', \\ + '$base/ev_newsegment.log' using 2:7:(0):(\$9-\$7):yticlabels(8) axes x1y1 with vectors title 'newsegment', \\ + '$base/ev_seek.log' using 2:7:(0):(\$9-\$7):yticlabels(8) axes x1y1 with vectors title 'seek', \\ + '$base/ev_tag.log' using 2:7:(0):(\$9-\$7):yticlabels(8) axes x1y1 with vectors title 'tag', \\ '$base/msg_async-done.log' using 2:3:yticlabels(4) axes x1y1 with points title 'async-done', \\ '$base/msg_async-start.log' using 2:3:yticlabels(4) axes x1y1 with points title 'async-start', \\ '$base/msg_clock-lost.log' using 2:3:yticlabels(4) axes x1y1 with points title 'clock-lost', \\ |