1
1
# !/usr/bin/env gnuplot
2
2
3
+ # https://github.com/cirosantilli/linux-kernel-module-cheat#bst-vs-heap-vs-hashmap
4
+ #
5
+ # A stacked plot with a single xlabel as shown at:
6
+ #
7
+ # * https://tex.stackexchange.com/questions/346882/creating-an-equally-distributed-multiplot-with-gnuplottex
8
+ # * http://gnuplot.sourceforge.net/demo_canvas_5.2/layout.html
9
+ #
10
+ # would be even nicer, but it was hard to get right, and this
11
+ # is pretty good already.
12
+
3
13
set terminal png noenhanced size 800 , 1400
4
14
set output input_noext . " .tmp.png"
5
15
set multiplot layout 5 ,1 title " \nC++ Heap vs BST vs Hash map insert time" font " ,22"
6
- set xlabel " container size "
7
- set ylabel " insert time (ns)"
16
+ set lmargin 12
17
+ set label " Insert time (ns)" at screen 0.05 , 0.5 center front rotate font " ,16 "
8
18
set title font " ,16"
19
+ set for mat y " %5.0f"
9
20
10
21
set title " Heap (std::priority_queue)"
11
22
plot input_noext . " .dat" using 1 :2 notitle
@@ -22,6 +33,7 @@ set title "Hash map (std::unordered_set)"
22
33
set yrange [*:* ]
23
34
plot input_noext . " .dat" using 1 :4 notitle
24
35
25
- set title " Hash map zoom"
36
+ set xlabel " Container size" font " ,16"
37
+ set title " Hash map (zoom)"
26
38
set yrange [0 : hashma p_zoom_max ]
27
39
plot input_noext . " .dat" using 1 :4 notitle
0 commit comments