set terminal pngcairo mono size 600,800 set xdata time set timefmt "%s" set pointsize 0.2 set output '/dev/shm/temp2.png' set multiplot set size 1, 0.5 set origin 0.0, 0.5 plot "/dev/shm/DS18B20-temperature" using 1:2 with points title "DS18B20 deg. C","/dev/shm/DHT22-temperature" using 1:($2 > 1 && $2 < 45 ? $2 : '') with dots title "DHT22 deg. C" set origin 0.0, 0.0 plot "/dev/shm/DHT22-humidity" using 1:($2 > 3 ? $2 : '') with dots title "DHT22 % hum" unset multiplot