-
Notifications
You must be signed in to change notification settings - Fork 3
Expand file tree
/
Copy pathplot_sim.gpi
More file actions
46 lines (39 loc) · 1.03 KB
/
Copy pathplot_sim.gpi
File metadata and controls
46 lines (39 loc) · 1.03 KB
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
set terminal pngcairo size 1280, 768
set output 'simulation.png'
set grid x
set grid y
set lmargin 10
set linestyle 1 lc black lw 2
set multiplot
set size 1, 0.5
set origin 0, 0.5
set title 'Temperature and system behaviour'
set ylabel "temperature/ºC"
set bmargin 0
set xtics format " "
plot "sim_data" using 1:2 with lines title "Target Temperature" ls 1, \
"" using 1:5 with lines title "Temperature", \
"" using 1:6 with lines title "Temperature with simulated reading error"
set size 1, 0.15
set origin 0, 0.35
unset title
set yrange [-0.2:1.2]
set ytics 0, 0.2, 1
set ylabel "value"
plot "" using 1:4 with lines title "PID output"
set origin 0, 0.2
set yrange [*:]
set ytics auto
set ylabel "value"
plot "" using 1:7 w lines t 'error', \
"" using 1:8 w lines t 'integral', \
"" using 1:9 w lines t 'diff'
set origin 0, 0
set size 1, 0.2
set yrange [-10:70]
set xtics format "%g"
set ytics 0, 20, 60
set ylabel "time on/s"
set xlabel "Time into test"
set bmargin 4
plot "" using 1:3 with lines title "Boiler on/off period"