squiggle.c/scratchpad/plotting/gnuplot/term3.gp

27 lines
490 B
Plaintext
Raw Normal View History

2024-01-30 12:46:52 +00:00
reset
2024-01-30 12:54:01 +00:00
2024-01-30 13:52:25 +00:00
stats 'data.dat' nooutput
# show variables all
2024-01-30 13:52:25 +00:00
max=STATS_max
min=STATS_min
2024-01-30 13:52:25 +00:00
n=1000
width=(max-min)/n
2024-01-30 12:46:52 +00:00
hist(x,width)=width*floor(x/width)+width/2.0
2024-01-30 13:52:25 +00:00
set xrange [min:max]
set yrange [0:]
2024-01-30 13:52:25 +00:00
unset xtics
unset ytics
unset border
set xtics out nomirror norotate offset 0,0
set ytics out nomirror norotate
set ytics in nomirror norotate offset 0,0
set tics scale 0,0,0,0
set xlabel "x"
2024-01-30 13:52:25 +00:00
set terminal dumb size 100, 25
plot "data.dat" u (hist($1,width)):(1.0) smooth freq w boxes notitle