#!/usr/bin/gnuplot

## MOTE: `file_to_plot` and `compound` must be set by the caller, eg. 
##    $ gnuplot gnuplot_script_daily -e "file_to_plot='${DATA_FILE}'" -e "compound='${compound}'" "${SENSITIVITY}" > "${DATA_FILE}.png"

reset
set terminal unknown
plot compound using (($1-2440587.00)*24.0*3600.0):3 with points
xmin = GPVAL_DATA_X_MIN

set terminal png size 700,380
set title compound
set xlabel ""
set ylabel "Peak height (mV)"
set yrange [0:]

set xdata time
set format x "%Hh"
set xrange [xmin:xmin+(23.9*3600.0)]

set key reverse Left outside
set grid
set style data lines

plot compound using (($1-2440587.00)*24.0*3600.0):($3/1.0) with linespoints pointsize 1 linewidth 2 linecolor rgb "red" notitle
