diff options
author | Bjoern B. Brandenburg <bbb@cs.unc.edu> | 2009-02-18 11:13:25 -0500 |
---|---|---|
committer | Bjoern B. Brandenburg <bbb@cs.unc.edu> | 2009-02-18 11:13:25 -0500 |
commit | 1c643e2c045cd3c2d2c73ce1111171e7f01ebcc6 (patch) | |
tree | 8b68e6652dd69867908c1fcd573603b8f35f3740 | |
parent | 8747d1b1cf6af2a1f7c9108c177b7b8764bda19e (diff) |
plotting style used in submission of ECRTS'09
-rwxr-xr-x | plot_ecrts | 16 | ||||
-rwxr-xr-x | plot_scatter | 9 |
2 files changed, 13 insertions, 12 deletions
@@ -74,28 +74,28 @@ function plot_file { | |||
74 | YRANGE=" --yrange -0.05 1.05 --yticks 0 0.1" | 74 | YRANGE=" --yrange -0.05 1.05 --yticks 0 0.1" |
75 | case $AXIS in | 75 | case $AXIS in |
76 | ucap) | 76 | ucap) |
77 | if [ "$SCHED" == "P-EDF" ] | 77 | XRANGE="--xrange 0.5 32.5 --xticks 0 2" |
78 | XRANGE="--xrange 0.5 22.5 --xticks 0 2" | ||
79 | if [ "$SCHED" == "G-EDF" ] && [ "$TEST" == "hard" ] | ||
78 | then | 80 | then |
79 | XRANGE="--xrange 0.5 32.5 --xticks 0 2" | ||
80 | else | ||
81 | XRANGE="--xrange 0.5 14.5 --xticks 0 1" | 81 | XRANGE="--xrange 0.5 14.5 --xticks 0 1" |
82 | fi | 82 | fi |
83 | AXIS_LABEL="task set utilization (prior to inflation)" | 83 | AXIS_LABEL="task set utilization (prior to inflation)" |
84 | ;; | 84 | ;; |
85 | res) | 85 | res) |
86 | XRANGE="--xrange 0 5.5 --xticks 0 1" | 86 | XRANGE="--xrange 0 5.05 --xticks 0 1" |
87 | AXIS_LABEL="average number of resources per task" | 87 | AXIS_LABEL="average number of resources per task" |
88 | ;; | 88 | ;; |
89 | nest) | 89 | nest) |
90 | XRANGE="--xrange 0 0.55 --xticks 0 0.1" | 90 | XRANGE="--xrange 0 0.505 --xticks 0 0.1" |
91 | AXIS_LABEL="probability of nested requests" | 91 | AXIS_LABEL="probability of nested requests" |
92 | ;; | 92 | ;; |
93 | contention) | 93 | contention) |
94 | XRANGE="--xrange 25 575 --xticks 0 50" | 94 | XRANGE="--xrange 45 555 --xticks 0 50" |
95 | AXIS_LABEL="requests per resource per second" | 95 | AXIS_LABEL="requests per resource per second" |
96 | ;; | 96 | ;; |
97 | wratio) | 97 | wratio) |
98 | XRANGE="--xrange 0 0.55 --xticks 0 0.1" | 98 | XRANGE="--xrange 0 0.505 --xticks 0 0.1" |
99 | AXIS_LABEL="ratio of write requests" | 99 | AXIS_LABEL="ratio of write requests" |
100 | ;; | 100 | ;; |
101 | *) | 101 | *) |
@@ -106,7 +106,7 @@ function plot_file { | |||
106 | TITLE="$TEST schedulability under $SCHED with$PARAMS" | 106 | TITLE="$TEST schedulability under $SCHED with$PARAMS" |
107 | RANGE="$XRANGE $YRANGE" | 107 | RANGE="$XRANGE $YRANGE" |
108 | $PLOTTER $RANGE "$NAME" "$AXIS_LABEL" "ratio of schedulable task sets" "$TITLE" \ | 108 | $PLOTTER $RANGE "$NAME" "$AXIS_LABEL" "ratio of schedulable task sets" "$TITLE" \ |
109 | $STRIPPED 1 2 "fair mutex" \ | 109 | $STRIPPED 1 2 "task-fair mutex" \ |
110 | $STRIPPED 1 3 "task-fair RW" \ | 110 | $STRIPPED 1 3 "task-fair RW" \ |
111 | $STRIPPED 1 4 "phase-fair RW" | 111 | $STRIPPED 1 4 "phase-fair RW" |
112 | rm $STRIPPED | 112 | rm $STRIPPED |
diff --git a/plot_scatter b/plot_scatter index 6ebb436..de709f3 100755 --- a/plot_scatter +++ b/plot_scatter | |||
@@ -3,7 +3,7 @@ | |||
3 | #NICE="blacktext linewidth 4.0 \"Helvetica\" 16 " | 3 | #NICE="blacktext linewidth 4.0 \"Helvetica\" 16 " |
4 | 4 | ||
5 | # try thinner lines | 5 | # try thinner lines |
6 | NICE="blacktext linewidth 1.0 \"Helvetica\" 16 " | 6 | NICE="color blacktext solid linewidth 1.0 \"Helvetica\" 20 size 16cm,7cm" |
7 | 7 | ||
8 | EXT="png" | 8 | EXT="png" |
9 | TERMINAL="png size 1024,768 large" | 9 | TERMINAL="png size 1024,768 large" |
@@ -15,7 +15,7 @@ while true; do | |||
15 | --eps) | 15 | --eps) |
16 | shift | 16 | shift |
17 | EXT="eps" | 17 | EXT="eps" |
18 | TERMINAL="postscript color eps $NICE" | 18 | TERMINAL="postscript eps $NICE" |
19 | ;; | 19 | ;; |
20 | --lines) | 20 | --lines) |
21 | shift | 21 | shift |
@@ -100,7 +100,8 @@ if [ "$PLOT" = "plot " ]; then | |||
100 | fi | 100 | fi |
101 | 101 | ||
102 | OUT="${OUT}.${EXT}" | 102 | OUT="${OUT}.${EXT}" |
103 | 103 | KEY="set key below" | |
104 | KEY="set key off" | ||
104 | gnuplot <<EOM | 105 | gnuplot <<EOM |
105 | set terminal $TERMINAL | 106 | set terminal $TERMINAL |
106 | set out '/dev/null' | 107 | set out '/dev/null' |
@@ -112,7 +113,7 @@ $PLOT | |||
112 | set ylabel '$YLABEL' | 113 | set ylabel '$YLABEL' |
113 | set xlabel '$XLABEL' | 114 | set xlabel '$XLABEL' |
114 | set title '$TITLE' | 115 | set title '$TITLE' |
115 | set key below | 116 | $KEY |
116 | set data style $GRAPH | 117 | set data style $GRAPH |
117 | set out '$OUT' | 118 | set out '$OUT' |
118 | replot | 119 | replot |