-
Notifications
You must be signed in to change notification settings - Fork 0
/
plot.gnu
45 lines (38 loc) · 1.48 KB
/
plot.gnu
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
36
37
38
39
40
41
42
43
44
45
set terminal pdfcairo font "Gill Sans,16" linewidth 2 rounded #fontscale 1.0
set style line 80 lt rgb "#808080"
# Line style for grid
set style line 81 lt 0 # dashed
set style line 81 lt rgb "#808080" # grey
set style line 82 lt 0 # dashed
set style line 82 lt rgb "#000000" # grey
set grid back linestyle 81
set border 1 back linestyle 80
set xtics nomirror
set ytics nomirror
#set style line 1 lt rgb "#A00000" lw 2 pt 1
#set style line 2 lt rgb "#00A000" lw 2 pt 6
#set style line 3 lt rgb "#5060D0" lw 2 pt 2
#set style line 4 lt rgb "#F25900" lw 2 pt 9
set style line 1 lt rgb "#000000" lw 2 pt 1
set style line 2 lt rgb "#000040" lw 2 pt 6
set style line 3 lt rgb "#000080" lw 2 pt 2
set style line 4 lt rgb "#0000a0" lw 2 pt 9
set yrange [0:*]
set xrange [0:*]
# set xtics nomirror rotate by -40 # scale 0 font ",24"
set ylabel "Probability" offset 2
set xlabel "Number of Clock Cycles" offset 2
# set style data histogram
# set key at 430,140000
set key samplen 1 width 2
# set key autotitle columnhead
#set boxwidth 1
#set arrow from -1,1 to 4,1 nohead lt 2
# set arrow from 0.6,0 to 0.6,1.4 nohead lt 1
# set label "4.99" at 1.45,5 font ",16" front
set style fill pattern
plot "hist.dat" using 1:2 title "0" with boxes, "hist.dat" using 1:3 title "1" with boxes
# '' using 5:xticlabel(1) fs pattern 1 lt -1,\
# '' using 6:xticlabel(1) fs pattern 2 lt -1,\
# '' using 3:xticlabel(1) fs pattern 3 lt -1,\
#'' using 4:xticlabel(1) fs pattern 4 lt -1