Skip to content

Commit 879a049

Browse files
committed
Tweaking.
1 parent 3b78300 commit 879a049

3 files changed

Lines changed: 32 additions & 3 deletions

File tree

scripts/bar.gnuplot

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
set term pdfcairo fontscale 1
1+
set term pdfcairo fontscale 0.5
22
set output name
33
set boxwidth 0.8
44
set style fill solid
@@ -24,4 +24,4 @@ set format y "%0.1f";
2424

2525
set style line 1 lt rgb "#A0A0A0" lw 1 pt 1 ps 1
2626

27-
plot filename using 0:2:xtic(1) with boxes notitle ls 1, '' using 0:(1):(sprintf("%.1f", $2)) with labels notitle
27+
plot filename using 0:2:xtic(1) with boxes notitle ls 1, '' using 0:(1):(sprintf("%.1f", $2)) with labels notitle

scripts/plotparse.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ if [ "$os" = "Linux" ]; then
2222
echo $i
2323
$SCRIPTPATH/../parse -t "$i" >> "$myfile"
2424
done
25-
echo $myfile
25+
gnuplot -e "filename='$myfile';name='$plotdirectory/stackedperf.pdf'" $SCRIPTPATH/stackbar.gnuplot
2626
fi
2727

2828
make parsingcompetition

scripts/stackbar.gnuplot

Lines changed: 29 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,29 @@
1+
set term pdfcairo fontscale 0.5 noenhanced
2+
set output name
3+
set boxwidth 0.8
4+
set style fill solid
5+
set ylabel "cycles per input byte"
6+
7+
8+
set style line 80 lt rgb "#000000"
9+
10+
# Line style for grid
11+
set style line 81 lt 0 # dashed
12+
set style line 81 lt rgb "#808080" # grey
13+
14+
set grid back linestyle 81
15+
set border 3 back linestyle 80 # Remove border on top and right. These
16+
# borders are useless and make it harder
17+
# to see plotted lines near the border.
18+
# Also, put it in grey; no need for so much emphasis on a border.
19+
set xtics nomirror
20+
set ytics nomirror
21+
22+
set yrange [0:]
23+
24+
set key right
25+
set style data histograms
26+
set style histogram rowstacked
27+
set xtic rotate by 300 scale 1
28+
29+
plot filename using 2 t "allocation", '' using 3 t "stage 1", '' using 4 t "stage 2", '' using 5:xtic(1) t "stage 3"

0 commit comments

Comments
 (0)