forked from Eriner/zsh-framework-benchmark
-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathplot-graph
executable file
·35 lines (26 loc) · 916 Bytes
/
plot-graph
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
#!/usr/bin/gnuplot -c
# Output W3C Scalable Vector Graphics
set terminal svg
set output "results.svg"
# Read comma-delimited data from file
set datafile separator comma
# Set graph title
set label center at graph 0.5, char 1 "last updated on ".strftime("%b %d, %Y at %H:%M:%S UTC", time(0))." using ".zsh_version
# Set label of y-axis
set ylabel 'time to first prompt in seconds'
# Set y-axis range to start at 0
set yrange [0:]
# Disable the tiny tick lines on both axis
set xtics scale 0
set ytics scale 0
# Disable legend
set key off
# White background
set style rectangle fillstyle noborder
set object 1 rectangle behind from screen 0,0 to screen 1,1 fillcolor rgb "white"
set bmargin 4.5
set boxwidth 0.5
set style fill solid
set xtics font ",10"
set ytics font ",10"
plot '<(grep -v vanilla results/results.csv | sed "s/-/\\\n/" | sort -t, -g -k2)' using 2: xtic(1) with boxes linecolor rgb "#dc1e3d"