From 1fa1d31e516adc4c7e2c6f800b44d169a5d2d3ee Mon Sep 17 00:00:00 2001 From: Bjoern Brandenburg Date: Wed, 1 Oct 2008 00:00:53 -0400 Subject: camera-ready style --- plot_sched | 87 ++++++++++++++++++++++++++++++++++++-------------------------- 1 file changed, 51 insertions(+), 36 deletions(-) (limited to 'plot_sched') 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 " if [ "$1" == "--eps" ]; then EXT="eps" - TERMINAL="postscript color eps $NICE" +# TERMINAL="postscript eps color $NICE" + TERMINAL="postscript eps $NICE" shift else EXT="png" @@ -25,9 +26,9 @@ fi HARDSOFT=`basename $CSV1 | sed -e 's/^\([^_]*\).*/\1/'` KIND=`basename $CSV1 | sed -e 's/^[^_]*_\([^_]*\).*/\1/'` -DIST=`basename $CSV1 | sed -e 's/^[^_]*_[^_]*_dist=\(.*\).csv/\1/'` +FDIST=`basename $CSV1 | sed -e 's/^[^_]*_[^_]*_dist=\(.*\).csv/\1/'` -case "$DIST" in +case "$FDIST" in uni_light) DIST="uniformly distributed in [0.001, 0.1]" ;; @@ -54,24 +55,41 @@ echo "Hard/Soft : $HARDSOFT" echo "Study : $KIND" echo "Distribution: $DIST" +XLABEL="utilization cap" +XRANGE="set xrange [0.5:32.5]; set xtics 0, 2" + +STYLE="lines lw 3" +#STYLE=linespoints + + +LINESTYLE=" \ + set style line 1 lt rgb 'blue'; \ + set style line 2 lt rgb 'orange-red'; \ +" + case "$KIND" in sched) YLABEL="schedulability" YRANGE="set yrange [-0.1:1.1]" case "$HARDSOFT" in soft) - PLOT="plot '$CSV1' using 1:2 title 'P-EDF' with linespoints, \ - '$CSV1' using 1:3 title 'C-EDF' with linespoints, \ - '$CSV1' using 1:4 title 'G-EDF' with linespoints, \ - '$CSV1' using 1:5 title 'PFAIR' with linespoints, \ - '$CSV1' using 1:6 title 'G-NP-EDF' with linespoints + PLOT="plot '$CSV1' using 1:2 title 'P-EDF' with $STYLE, \ + '$CSV1' using 1:3 title 'C-EDF' with $STYLE, \ + '$CSV1' using 1:4 title 'G-EDF' with $STYLE, \ + '$CSV1' using 1:5 title 'PFAIR' with $STYLE, \ + '$CSV1' using 1:6 title 'S-PFAIR' with $STYLE, \ + '$CSV1' using 1:7 title 'G-NP-EDF' with $STYLE " + if [ "$FDIST" != "uni_light" ]; then + XRANGE="set xrange [21.5:32.5]; set xtics 0, 2" + fi ;; hard) - PLOT="plot '$CSV1' using 1:2 title 'P-EDF' with linespoints, \ - '$CSV1' using 1:3 title 'C-EDF' with linespoints, \ - '$CSV1' using 1:4 title 'G-EDF' with linespoints, \ - '$CSV1' using 1:5 title 'PFAIR' with linespoints \ + PLOT="plot '$CSV1' using 1:2 title 'P-EDF' with $STYLE, \ + '$CSV1' using 1:3 title 'C-EDF' with $STYLE, \ + '$CSV1' using 1:4 title 'G-EDF' with $STYLE, \ + '$CSV1' using 1:5 title 'PFAIR' with $STYLE, \ + '$CSV1' using 1:6 title 'S-PFAIR' with $STYLE " ;; esac @@ -79,9 +97,9 @@ case "$KIND" in tard) YLABEL="tardiness (in ms)" YRANGE= - PLOT="plot '$CSV1' using 1:2 title 'C-EDF' with linespoints, \ - '$CSV1' using 1:3 title 'G-EDF' with linespoints, \ - '$CSV1' using 1:4 title 'G-NP-EDF' with linespoints + PLOT="plot '$CSV1' using 1:2 title 'C-EDF' with $STYLE, \ + '$CSV1' using 1:3 title 'G-EDF' with $STYLE, \ + '$CSV1' using 1:4 title 'G-NP-EDF' with $STYLE " ;; util) @@ -89,18 +107,18 @@ case "$KIND" in YRANGE= case "$HARDSOFT" in soft) - PLOT="plot '$CSV1' using 1:2 title 'P-EDF' with linespoints, \ - '$CSV1' using 1:3 title 'C-EDF' with linespoints, \ - '$CSV1' using 1:4 title 'G-EDF' with linespoints, \ - '$CSV1' using 1:5 title 'PFAIR' with linespoints, \ - '$CSV1' using 1:6 title 'G-NP-EDF' with linespoints + PLOT="plot '$CSV1' using 1:2 title 'P-EDF' with $STYLE, \ + '$CSV1' using 1:3 title 'C-EDF' with $STYLE, \ + '$CSV1' using 1:4 title 'G-EDF' with $STYLE, \ + '$CSV1' using 1:5 title 'PFAIR' with $STYLE, \ + '$CSV1' using 1:6 title 'G-NP-EDF' with $STYLE " ;; hard) - PLOT="plot '$CSV1' using 1:2 title 'P-EDF' with linespoints, \ - '$CSV1' using 1:3 title 'C-EDF' with linespoints, \ - '$CSV1' using 1:4 title 'G-EDF' with linespoints, \ - '$CSV1' using 1:5 title 'PFAIR' with linespoints \ + PLOT="plot '$CSV1' using 1:2 title 'P-EDF' with $STYLE, \ + '$CSV1' using 1:3 title 'C-EDF' with $STYLE, \ + '$CSV1' using 1:4 title 'G-EDF' with $STYLE, \ + '$CSV1' using 1:5 title 'PFAIR' with $STYLE \ " ;; esac @@ -108,13 +126,13 @@ case "$KIND" in gedf) YLABEL="schedulability" YRANGE="set yrange [-0.1:1.1]" - PLOT="plot '$CSV1' using 1:2 title 'P-EDF' with linespoints, \ - '$CSV1' using 1:8 title 'G-EDF (all)' with linespoints, \ - '$CSV1' using 1:3 title 'G-EDF [GFB03]' with linespoints, \ - '$CSV1' using 1:4 title 'G-EDF [BAK03]' with linespoints, \ - '$CSV1' using 1:5 title 'G-EDF [BCL05]' with linespoints, \ - '$CSV1' using 1:6 title 'G-EDF [BCL08]' with linespoints, \ - '$CSV1' using 1:7 title 'G-EDF [SKB07]' with linespoints \ + PLOT="plot '$CSV1' using 1:2 title 'P-EDF' with $STYLE, \ + '$CSV1' using 1:8 title 'G-EDF (all)' with $STYLE, \ + '$CSV1' using 1:3 title 'G-EDF [GFB03]' with $STYLE, \ + '$CSV1' using 1:4 title 'G-EDF [BAK03]' with $STYLE, \ + '$CSV1' using 1:5 title 'G-EDF [BCL05]' with $STYLE, \ + '$CSV1' using 1:6 title 'G-EDF [BCL08]' with $STYLE, \ + '$CSV1' using 1:7 title 'G-EDF [SKB07]' with $STYLE \ " ;; *) @@ -123,10 +141,6 @@ case "$KIND" in ;; esac - -XLABEL="utilization cap" -XRANGE="set xrange [0.5:32.5]; set xtics 0, 2" - BASE=`basename $CSV1 | sed -e s/.csv//g -e s/dist=//g ` #echo $BASE @@ -152,8 +166,9 @@ set ylabel '$YLABEL' set xlabel '$XLABEL' set title '$TITLE' set key below -set data style linespoints +#set data style $STYLE set out '$OUT' +set palette defined ( 0 "blue", 3 "green", 6 "yellow", 10 "red" ) replot set out EOM -- cgit v1.2.2