From a5a125482c4a1c0a0847dd5a68ac887e0cd88877 Mon Sep 17 00:00:00 2001 From: William Clark Date: Wed, 21 Aug 2024 19:26:55 +0100 Subject: [PATCH] do not include gas info for non-gas graphs --- plot/gnuplot.gpt | 11 ++++++----- 1 file changed, 6 insertions(+), 5 deletions(-) diff --git a/plot/gnuplot.gpt b/plot/gnuplot.gpt index e2b0683..3b17a7b 100644 --- a/plot/gnuplot.gpt +++ b/plot/gnuplot.gpt @@ -1,11 +1,12 @@ # gnuplot reset -set key autotitle columnhead +set key autotitle columnhead top left spacing 2 set terminal pngcairo enhanced size 2*1920/3,2*1080/3 -set grid +set grid linewidth 2 set xdata time set timefmt "%Y-%m-%dT%H:%M:%S%z" +set xtics format "%d/%m\n%H:%M" # gas res vs time set title "[I_{dac}=100, 100ms, target=300 C] GasRes over time" @@ -15,21 +16,21 @@ 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 title "Temperature over time" set xlabel "Time" set ylabel "Temperature (C)" set output "temp.png" plot '../data/i2c.txt' u 1:2 w p pt 3 ps 1 t "bme680-i2c", \ '../data/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 title "Pressure over time" set xlabel "Time" set ylabel "Pressure (Pa)" set output "press.png" plot '../data/i2c.txt' u 1:3 w p pt 3 ps 1 t "bme680-i2c", \ '../data/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 title "Humidity over time" set xlabel "Time" set ylabel "Humidity (%RH)" set output "hum.png"