bme680/plot/gnuplot.gpt
2024-08-19 18:52:31 +01:00

37 lines
1.1 KiB
Plaintext

# gnuplot
reset
set key autotitle columnhead
set terminal pngcairo enhanced size 2*1920/3,2*1080/3
set grid
set xdata time
set timefmt "%Y-%m-%dT%H:%M:%S%z"
# gas res vs time
set title "[I_{dac}=100, 100ms, target=300 C] GasRes over time"
set xlabel "Time"
set ylabel "Gas Resistance (OHM)"
set output "gas.png"
plot 'i2c.txt' u 1:5 w p pt 3 ps 1 t "bme680-i2c", \
'spi.txt' u 1:5 w p pt 3 ps 1 t "bme680-spi"
set title "[I_{dac}=100, 100ms, target=300 C] Temperature over time"
set xlabel "Time"
set ylabel "Temperature (C)"
set output "temp.png"
plot 'i2c.txt' u 1:2 w p pt 3 ps 1 t "bme680-i2c", \
'spi.txt' u 1:2 w p pt 3 ps 1 t "bme680-spi"
set title "[I_{dac}=100, 100ms, target=300 C] Pressure over time"
set xlabel "Time"
set ylabel "Pressure (Pa)"
set output "press.png"
plot 'i2c.txt' u 1:3 w p pt 3 ps 1 t "bme680-i2c", \
'spi.txt' u 1:3 w p pt 3 ps 1 t "bme680-spi"
set title "[I_{dac}=100, 100ms, target=300 C] Humidity over time"
set xlabel "Time"
set ylabel "Humidity (%RH)"
set output "hum.png"
plot 'i2c.txt' u 1:4 w p pt 3 ps 1 t "bme680-i2c", \
'spi.txt' u 1:4 w p pt 3 ps 1 t "bme680-spi"