forked from thestrangek/Drowsiness-Detection-System
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathplotBands.plot
29 lines (28 loc) · 1.81 KB
/
plotBands.plot
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
set title 'Bands';
set xlabel 'time (s)';
set ylabel 'EEG values';
set ytics nomirror
#set yrange [0:50000000];
#xmin = 0;
#xmid = 1;
#xmax = 2;
#set xrange[xmin:xmax];
#set xtics (xmin,xmid,xmax);
set grid x,y;
show grid;
plot "data.bin" binary format="%double%double%double%double%double%double%double%double%double%double%double%double%double%double%double" using 1:4 title 'Delta' with lines lw 1, \
"data.bin" binary format="%double%double%double%double%double%double%double%double%double%double%double%double%double%double%double" using 1:5 title 'Theta' with lines lw 1, \
"data.bin" binary format="%double%double%double%double%double%double%double%double%double%double%double%double%double%double%double" using 1:6 title 'LowAlpha' with lines lw 1, \
"data.bin" binary format="%double%double%double%double%double%double%double%double%double%double%double%double%double%double%double" using 1:7 title 'HighAlpha' with lines lw 1, \
"data.bin" binary format="%double%double%double%double%double%double%double%double%double%double%double%double%double%double%double" using 1:8 title 'LowBeta' with lines lw 1, \
"data.bin" binary format="%double%double%double%double%double%double%double%double%double%double%double%double%double%double%double" using 1:9 title 'HighBeta' with lines lw 1, \
"data.bin" binary format="%double%double%double%double%double%double%double%double%double%double%double%double%double%double%double" using 1:10 title 'LowGamma' with lines lw 1, \
"data.bin" binary format="%double%double%double%double%double%double%double%double%double%double%double%double%double%double%double" using 1:11 title 'MidGamma' with lines lw 1
while(1) {
#set xrange [xmin+0.5:xmax+0.5];
#xmin = xmin + 0.5;
#xmax = xmax + 0.5;
#xmid = xmid + 0.5;
#set xtics (xmin,xmid,xmax);
replot;
}