File: plotL

package info (click to toggle)
lrslib 0.73-4
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 16,888 kB
  • sloc: ansic: 20,893; sh: 279; makefile: 252; perl: 97; csh: 51
file content (26 lines) | stat: -rwxr-xr-x 459 bytes parent folder | download | duplicates (2)
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
#!/bin/bash

if [  -n "$1" ]; then
   hist=$1
else
   hist="hist"
fi

gnuplot -p <<EOF
set terminal postscript landscape enhanced color
set output '$hist.ps'
set autoscale
set xlabel "time (secs)"
set title "Size of job list L vs time"
set ylabel "L"
plot '$hist' using 1:3
set title "Requests vs time"
set ylabel "cores"
plot '$hist' using 1:4
set title "Number of cores vs time"
set ylabel "cores"
plot '$hist' using 1:2
EOF

ps2pdf $hist.ps
rm -f $hist.ps