1
0
Fork 0
This repository has been archived on 2024-06-28. You can view files and clone it, but cannot push or open issues or pull requests.
Umweltdatenmessung/Einstellungen.plt

38 lines
1.5 KiB
Gnuplot
Raw Normal View History

2014-01-19 18:26:23 +01:00
# x-Achse enthält Zeitinformation
set xdata time
# Zeitformat zur Eingabe
set timefmt x "%Y/%m/%d\ %H:%M:%S"
# Zeitformat zur Beschriftung der x-Achse
set format x "%d.%m %H:%M"
# set nokey #keine Legende
set grid #Gitter anzeigen
set title "Raspberry Pi" #Überschrift
set ylabel 'Temperatur (°C)'
set y2label 'relative Luftfeuchtigkeit (%)'
2014-01-19 18:26:23 +01:00
#set xlabel 'Zeit'
set y2tics # Zahlen auch auf 2. y-Achse
plot "/var/www/gnuplot/daten_gnuplot.txt" using 1:3 title 'Innentemperatur 1' with lines axes x1y1, \
"/var/www/gnuplot/daten_gnuplot.txt" using 1:4 title 'Innentemperatur 2' with lines axes x1y1, \
"/var/www/gnuplot/daten_gnuplot.txt" using 1:5 title 'Außentemperatur' with lines axes x1y1, \
"/var/www/gnuplot/daten_gnuplot.txt" using 1:6 title 'Temperatur Luft' with lines axes x1y1, \
"/var/www/gnuplot/daten_gnuplot.txt" using 1:7 title 'Luftfeuchtigkeit' with lines axes x1y2, \
"/var/www/gnuplot/daten_gnuplot.txt" using 1:9 title 'Temperatur (Druck)' with lines axes x1y1
2014-01-19 18:26:23 +01:00
set terminal svg size 1200,800
set output "/var/www/gnuplot/gnuplot.svg"
replot
set terminal png size 1200,800
set output "/var/www/gnuplot/gnuplot.png"
replot
set ylabel 'Luftdruck (hPa)'
set y2label 'Temperatur (°C)'
plot "/var/www/gnuplot/daten_gnuplot.txt" using 1:8 title 'Luftdruck' with lines axes x1y1, \
"/var/www/gnuplot/daten_gnuplot.txt" using 1:10 title 'Prozessor' with lines axes x1y2
set terminal svg size 1200,800
set output "/var/www/gnuplot/druck.svg"
replot
set terminal png size 1200,800
set output "/var/www/gnuplot/druck.png"
replot