# general set grid set autoscale set datafile missing '' # x axis set autoscale x set xtics set xdata time set timefmt "%Y-%m-%d_%H:%M" # plot plot 'gnumed-lab.dat' using 3:4:(valid(5) ? column(5) : $4):(valid(6) ? column(6) : $4):xticlabels(2) index 0 with yerrorbars # detect and adjust x range and replot set xrange [(GPVAL_X_MIN - 43200):(GPVAL_X_MAX + 43200)] replot