-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathliveplot2.gnu
56 lines (51 loc) · 1.09 KB
/
liveplot2.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
46
47
48
49
50
51
52
53
54
55
56
# Greg Ziegan (grz5)
# Matt Prosser (mep99)
# Plotting format file. Is reread to refresh live plot
reset
set terminal wxt size 1300,600
set multiplot layout 3,1 title "MMO-3"
set tmargin 2
### Plot OSC1 '65440'
set title "OSC1"
unset key
stats 'plot.dat' using 1 name "X"
set xlabel "time (ms)"
set ylabel "Modulation Value"
if (X_max < 2000) {
set autoscale x
} else {
set xrange [X_max-2000:X_max]
}
set yrange [-40000:40000]
plot "<(grep 65440 plot.dat)" using 1:3 with lines
###
### Plot OSC2 '65441'
set title "OSC2"
unset key
set xlabel "time (ms)"
set ylabel "Modulation Value"
if (X_max < 2000) {
set autoscale x
} else {
set xrange [X_max-2000:X_max]
}
set yrange [-40000:40000]
plot "<(grep 65441 plot.dat)" using 1:3 with lines
###
### Plot OSC3 '65442'
set title "OSC3"
unset key
stats 'plot.dat' using 1 name "X"
set xlabel "time (ms)"
set ylabel "Modulation Value"
if (X_max < 2000) {
set autoscale x
} else {
set xrange [X_max-2000:X_max]
}
set yrange [-40000:40000]
plot "<(grep 65442 plot.dat)" using 1:3 with lines
###
unset multiplot
pause 0.001 # stepsize
reread