-
Notifications
You must be signed in to change notification settings - Fork 11
/
histogram-rowstacked.gp
34 lines (24 loc) · 812 Bytes
/
histogram-rowstacked.gp
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
# http://gnuplot.sourceforge.net/demo_5.0/histograms.html
set title 'Histogram Rowstacked'
set xlabel 'x'
set ylabel 'y'
set grid
set key below center horizontal noreverse enhanced autotitle box dashtype solid
set tics out nomirror
set border 3 front linetype black linewidth 1.0 dashtype solid
set xrange [-1:3]
set xtics 1
#set mxtics 1
set yrange [0:20]
# set ytics 5
set style line 1 linecolor rgb '#0060ad' linetype 1 linewidth 2
set style histogram rowstacked title offset character 0, 0, 0
set style data histograms
set boxwidth 0.5 absolute
set style fill solid 3.0 border -1
set terminal png enhanced
set output 'img/histogram-rowstacked.png'
plot 'data/histogram-rowstacked.dat' using 2:xtic(1) title 'col2', \
'' using 3 title 'col3', \
'' using 4 title 'col4', \
'' using 5 title 'col5'