diff options
author | Bjoern Brandenburg <bbb@bbb1-cs.cs.unc.edu> | 2008-10-01 00:00:53 -0400 |
---|---|---|
committer | Bjoern Brandenburg <bbb@bbb1-cs.cs.unc.edu> | 2008-10-01 00:00:53 -0400 |
commit | 1fa1d31e516adc4c7e2c6f800b44d169a5d2d3ee (patch) | |
tree | 60a4d51b8b1368d353edafa8321c33efc0788184 | |
parent | 00223904295fdecd6f3d199bbded4632fd353877 (diff) |
camera-ready style
-rwxr-xr-x | plot_sched | 87 |
1 files changed, 51 insertions, 36 deletions
@@ -7,7 +7,8 @@ NICE="blacktext linewidth 1.0 \"Helvetica\" 16 " | |||
7 | 7 | ||
8 | if [ "$1" == "--eps" ]; then | 8 | if [ "$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 |
12 | else | 13 | else |
13 | EXT="png" | 14 | EXT="png" |
@@ -25,9 +26,9 @@ fi | |||
25 | 26 | ||
26 | HARDSOFT=`basename $CSV1 | sed -e 's/^\([^_]*\).*/\1/'` | 27 | HARDSOFT=`basename $CSV1 | sed -e 's/^\([^_]*\).*/\1/'` |
27 | KIND=`basename $CSV1 | sed -e 's/^[^_]*_\([^_]*\).*/\1/'` | 28 | KIND=`basename $CSV1 | sed -e 's/^[^_]*_\([^_]*\).*/\1/'` |
28 | DIST=`basename $CSV1 | sed -e 's/^[^_]*_[^_]*_dist=\(.*\).csv/\1/'` | 29 | FDIST=`basename $CSV1 | sed -e 's/^[^_]*_[^_]*_dist=\(.*\).csv/\1/'` |
29 | 30 | ||
30 | case "$DIST" in | 31 | case "$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" | |||
54 | echo "Study : $KIND" | 55 | echo "Study : $KIND" |
55 | echo "Distribution: $DIST" | 56 | echo "Distribution: $DIST" |
56 | 57 | ||
58 | XLABEL="utilization cap" | ||
59 | XRANGE="set xrange [0.5:32.5]; set xtics 0, 2" | ||
60 | |||
61 | STYLE="lines lw 3" | ||
62 | #STYLE=linespoints | ||
63 | |||
64 | |||
65 | LINESTYLE=" \ | ||
66 | set style line 1 lt rgb 'blue'; \ | ||
67 | set style line 2 lt rgb 'orange-red'; \ | ||
68 | " | ||
69 | |||
57 | case "$KIND" in | 70 | case "$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 | ;; |
124 | esac | 142 | esac |
125 | 143 | ||
126 | |||
127 | XLABEL="utilization cap" | ||
128 | XRANGE="set xrange [0.5:32.5]; set xtics 0, 2" | ||
129 | |||
130 | BASE=`basename $CSV1 | sed -e s/.csv//g -e s/dist=//g ` | 144 | BASE=`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' | |||
152 | set xlabel '$XLABEL' | 166 | set xlabel '$XLABEL' |
153 | set title '$TITLE' | 167 | set title '$TITLE' |
154 | set key below | 168 | set key below |
155 | set data style linespoints | 169 | #set data style $STYLE |
156 | set out '$OUT' | 170 | set out '$OUT' |
171 | set palette defined ( 0 "blue", 3 "green", 6 "yellow", 10 "red" ) | ||
157 | replot | 172 | replot |
158 | set out | 173 | set out |
159 | EOM | 174 | EOM |