aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorBjoern Brandenburg <bbb@bbb1-cs.cs.unc.edu>2008-10-01 00:00:53 -0400
committerBjoern Brandenburg <bbb@bbb1-cs.cs.unc.edu>2008-10-01 00:00:53 -0400
commit1fa1d31e516adc4c7e2c6f800b44d169a5d2d3ee (patch)
tree60a4d51b8b1368d353edafa8321c33efc0788184
parent00223904295fdecd6f3d199bbded4632fd353877 (diff)
camera-ready style
-rwxr-xr-xplot_sched87
1 files changed, 51 insertions, 36 deletions
diff --git a/plot_sched b/plot_sched
index f074314..1d1614c 100755
--- a/plot_sched
+++ b/plot_sched
@@ -7,7 +7,8 @@ NICE="blacktext linewidth 1.0 \"Helvetica\" 16 "
7 7
8if [ "$1" == "--eps" ]; then 8if [ "$1" == "--eps" ]; then
9 EXT="eps" 9 EXT="eps"
10 TERMINAL="postscript color eps $NICE" 10# TERMINAL="postscript eps color $NICE"
11 TERMINAL="postscript eps $NICE"
11 shift 12 shift
12else 13else
13 EXT="png" 14 EXT="png"
@@ -25,9 +26,9 @@ fi
25 26
26HARDSOFT=`basename $CSV1 | sed -e 's/^\([^_]*\).*/\1/'` 27HARDSOFT=`basename $CSV1 | sed -e 's/^\([^_]*\).*/\1/'`
27KIND=`basename $CSV1 | sed -e 's/^[^_]*_\([^_]*\).*/\1/'` 28KIND=`basename $CSV1 | sed -e 's/^[^_]*_\([^_]*\).*/\1/'`
28DIST=`basename $CSV1 | sed -e 's/^[^_]*_[^_]*_dist=\(.*\).csv/\1/'` 29FDIST=`basename $CSV1 | sed -e 's/^[^_]*_[^_]*_dist=\(.*\).csv/\1/'`
29 30
30case "$DIST" in 31case "$FDIST" in
31 uni_light) 32 uni_light)
32 DIST="uniformly distributed in [0.001, 0.1]" 33 DIST="uniformly distributed in [0.001, 0.1]"
33 ;; 34 ;;
@@ -54,24 +55,41 @@ echo "Hard/Soft : $HARDSOFT"
54echo "Study : $KIND" 55echo "Study : $KIND"
55echo "Distribution: $DIST" 56echo "Distribution: $DIST"
56 57
58XLABEL="utilization cap"
59XRANGE="set xrange [0.5:32.5]; set xtics 0, 2"
60
61STYLE="lines lw 3"
62#STYLE=linespoints
63
64
65LINESTYLE=" \
66 set style line 1 lt rgb 'blue'; \
67 set style line 2 lt rgb 'orange-red'; \
68"
69
57case "$KIND" in 70case "$KIND" in
58 sched) 71 sched)
59 YLABEL="schedulability" 72 YLABEL="schedulability"
60 YRANGE="set yrange [-0.1:1.1]" 73 YRANGE="set yrange [-0.1:1.1]"
61 case "$HARDSOFT" in 74 case "$HARDSOFT" in
62 soft) 75 soft)
63 PLOT="plot '$CSV1' using 1:2 title 'P-EDF' with linespoints, \ 76 PLOT="plot '$CSV1' using 1:2 title 'P-EDF' with $STYLE, \
64 '$CSV1' using 1:3 title 'C-EDF' with linespoints, \ 77 '$CSV1' using 1:3 title 'C-EDF' with $STYLE, \
65 '$CSV1' using 1:4 title 'G-EDF' with linespoints, \ 78 '$CSV1' using 1:4 title 'G-EDF' with $STYLE, \
66 '$CSV1' using 1:5 title 'PFAIR' with linespoints, \ 79 '$CSV1' using 1:5 title 'PFAIR' with $STYLE, \
67 '$CSV1' using 1:6 title 'G-NP-EDF' with linespoints 80 '$CSV1' using 1:6 title 'S-PFAIR' with $STYLE, \
81 '$CSV1' using 1:7 title 'G-NP-EDF' with $STYLE
68 " 82 "
83 if [ "$FDIST" != "uni_light" ]; then
84 XRANGE="set xrange [21.5:32.5]; set xtics 0, 2"
85 fi
69 ;; 86 ;;
70 hard) 87 hard)
71 PLOT="plot '$CSV1' using 1:2 title 'P-EDF' with linespoints, \ 88 PLOT="plot '$CSV1' using 1:2 title 'P-EDF' with $STYLE, \
72 '$CSV1' using 1:3 title 'C-EDF' with linespoints, \ 89 '$CSV1' using 1:3 title 'C-EDF' with $STYLE, \
73 '$CSV1' using 1:4 title 'G-EDF' with linespoints, \ 90 '$CSV1' using 1:4 title 'G-EDF' with $STYLE, \
74 '$CSV1' using 1:5 title 'PFAIR' with linespoints \ 91 '$CSV1' using 1:5 title 'PFAIR' with $STYLE, \
92 '$CSV1' using 1:6 title 'S-PFAIR' with $STYLE
75 " 93 "
76 ;; 94 ;;
77 esac 95 esac
@@ -79,9 +97,9 @@ case "$KIND" in
79 tard) 97 tard)
80 YLABEL="tardiness (in ms)" 98 YLABEL="tardiness (in ms)"
81 YRANGE= 99 YRANGE=
82 PLOT="plot '$CSV1' using 1:2 title 'C-EDF' with linespoints, \ 100 PLOT="plot '$CSV1' using 1:2 title 'C-EDF' with $STYLE, \
83 '$CSV1' using 1:3 title 'G-EDF' with linespoints, \ 101 '$CSV1' using 1:3 title 'G-EDF' with $STYLE, \
84 '$CSV1' using 1:4 title 'G-NP-EDF' with linespoints 102 '$CSV1' using 1:4 title 'G-NP-EDF' with $STYLE
85 " 103 "
86 ;; 104 ;;
87 util) 105 util)
@@ -89,18 +107,18 @@ case "$KIND" in
89 YRANGE= 107 YRANGE=
90 case "$HARDSOFT" in 108 case "$HARDSOFT" in
91 soft) 109 soft)
92 PLOT="plot '$CSV1' using 1:2 title 'P-EDF' with linespoints, \ 110 PLOT="plot '$CSV1' using 1:2 title 'P-EDF' with $STYLE, \
93 '$CSV1' using 1:3 title 'C-EDF' with linespoints, \ 111 '$CSV1' using 1:3 title 'C-EDF' with $STYLE, \
94 '$CSV1' using 1:4 title 'G-EDF' with linespoints, \ 112 '$CSV1' using 1:4 title 'G-EDF' with $STYLE, \
95 '$CSV1' using 1:5 title 'PFAIR' with linespoints, \ 113 '$CSV1' using 1:5 title 'PFAIR' with $STYLE, \
96 '$CSV1' using 1:6 title 'G-NP-EDF' with linespoints 114 '$CSV1' using 1:6 title 'G-NP-EDF' with $STYLE
97 " 115 "
98 ;; 116 ;;
99 hard) 117 hard)
100 PLOT="plot '$CSV1' using 1:2 title 'P-EDF' with linespoints, \ 118 PLOT="plot '$CSV1' using 1:2 title 'P-EDF' with $STYLE, \
101 '$CSV1' using 1:3 title 'C-EDF' with linespoints, \ 119 '$CSV1' using 1:3 title 'C-EDF' with $STYLE, \
102 '$CSV1' using 1:4 title 'G-EDF' with linespoints, \ 120 '$CSV1' using 1:4 title 'G-EDF' with $STYLE, \
103 '$CSV1' using 1:5 title 'PFAIR' with linespoints \ 121 '$CSV1' using 1:5 title 'PFAIR' with $STYLE \
104 " 122 "
105 ;; 123 ;;
106 esac 124 esac
@@ -108,13 +126,13 @@ case "$KIND" in
108 gedf) 126 gedf)
109 YLABEL="schedulability" 127 YLABEL="schedulability"
110 YRANGE="set yrange [-0.1:1.1]" 128 YRANGE="set yrange [-0.1:1.1]"
111 PLOT="plot '$CSV1' using 1:2 title 'P-EDF' with linespoints, \ 129 PLOT="plot '$CSV1' using 1:2 title 'P-EDF' with $STYLE, \
112 '$CSV1' using 1:8 title 'G-EDF (all)' with linespoints, \ 130 '$CSV1' using 1:8 title 'G-EDF (all)' with $STYLE, \
113 '$CSV1' using 1:3 title 'G-EDF [GFB03]' with linespoints, \ 131 '$CSV1' using 1:3 title 'G-EDF [GFB03]' with $STYLE, \
114 '$CSV1' using 1:4 title 'G-EDF [BAK03]' with linespoints, \ 132 '$CSV1' using 1:4 title 'G-EDF [BAK03]' with $STYLE, \
115 '$CSV1' using 1:5 title 'G-EDF [BCL05]' with linespoints, \ 133 '$CSV1' using 1:5 title 'G-EDF [BCL05]' with $STYLE, \
116 '$CSV1' using 1:6 title 'G-EDF [BCL08]' with linespoints, \ 134 '$CSV1' using 1:6 title 'G-EDF [BCL08]' with $STYLE, \
117 '$CSV1' using 1:7 title 'G-EDF [SKB07]' with linespoints \ 135 '$CSV1' using 1:7 title 'G-EDF [SKB07]' with $STYLE \
118 " 136 "
119 ;; 137 ;;
120 *) 138 *)
@@ -123,10 +141,6 @@ case "$KIND" in
123 ;; 141 ;;
124esac 142esac
125 143
126
127XLABEL="utilization cap"
128XRANGE="set xrange [0.5:32.5]; set xtics 0, 2"
129
130BASE=`basename $CSV1 | sed -e s/.csv//g -e s/dist=//g ` 144BASE=`basename $CSV1 | sed -e s/.csv//g -e s/dist=//g `
131 145
132#echo $BASE 146#echo $BASE
@@ -152,8 +166,9 @@ set ylabel '$YLABEL'
152set xlabel '$XLABEL' 166set xlabel '$XLABEL'
153set title '$TITLE' 167set title '$TITLE'
154set key below 168set key below
155set data style linespoints 169#set data style $STYLE
156set out '$OUT' 170set out '$OUT'
171set palette defined ( 0 "blue", 3 "green", 6 "yellow", 10 "red" )
157replot 172replot
158set out 173set out
159EOM 174EOM