Hi there!
I have a log file containing lines like this:
Code:
2019-02-10 03:53:54, 24, 40
That's date and time of the log entry, temperature in °C and RH (%)
Since I like plotting log files and have done that many times I thought that it can't be that hard. But I never had to deal with date/time things and that gave me some headache yesterday ...
So this is the last version of my gnuplot-script:
Code:
#!/usr/bin/gnuplot
FN = "/home/gszaktilla/log.txt"
set terminal postscript
set output "/tmp/plot.ps"
set xlabel "Datum"
set ylabel "°C bzw. %RH"
set title FN
set format x "%Y-%m-%d %H:%M:%S"
#set xdata time
set grid
plot FN using 1:2 notitle with lines
#eof
And the response I get is
Code:
"./diag.sh", line 18: Bad format character
Is there someone who knows what format string I have to use to plot my file?
TIA
Gregor
PS: The log files I played with usually look like the ones described here:
http://html.szaktilla.de/weekender/2.html