# Plot temp/humi data as compact strip chart from stdin. # Title is supplied as: # gnuplot -e "title='Multisensor Battery Plot (V)'" if (!exists("title")) title='data' # Output filename supplied as: # gnuplot -e "outname='foo.png'" if (!exists("outname")) outname='.noname.png' # Units (eg C or RH%) supplied as: # gnuplot -e "unit='V'" # Input of form (no column titles): #1733133443,19.68 #1733133473,19.86 #1733133503,19.95 #1733133534,20.02 #1733133563,20.05 set datafile separator comma # Input time format is Unix timestamp. set timefmt "%s" # Start to draw (PNG) output. set format x "%y/%m" set xdata time set terminal png size 800,200 set output outname set format y "%g" if (exists("unit")) set format y "%g".unit set grid plot '/dev/stdin' using 1:2 title title with lines