#!/usr/local/bin/gnuplot -persist # set terminal svg size 600,400 dynamic enhanced font 'arial,10' mousing name "stringvar_7" butt dashlength 1.0 # set output 'stringvar.7.svg' set xdata time set format x "% h" timedate set key inside left top vertical Right noreverse enhanced autotitle nobox set xrange [ * : * ] noreverse writeback set x2range [ * : * ] noreverse writeback set yrange [ * : * ] noreverse writeback set y2range [ * : * ] noreverse writeback set zrange [ * : * ] noreverse writeback set cbrange [ * : * ] noreverse writeback set rrange [ * : * ] noreverse writeback set colorbox vertical origin screen 0.9, 0.2 size screen 0.05, 0.6 front noinvert bdefault file(i) = sprintf("%1d.dat",i) read_time(fmt, c) = strptime(fmt, stringcolumn(c).' '.stringcolumn(c+1)) NO_ANIMATION = 1 iswindows = 0 isos2 = 0 beg = 2 end = 4 foo = "Apostrophes inside words don't matter" haystack = "Sat 1 Oct 21:59:44 PDT 2022" needle = ":" S = 14 N = 2 M = 3 fmt = "%d/%m/%y\t%H%M" time_str = "2005-05-09 19:44:12" seconds = 1115667852.0 time_str2 = "2005-05-09 19:44:22" ## Last datafile plotted: "timedat.dat" plot 'timedat.dat' skip 1 using (read_time(fmt,1)):3 with histeps, 'timedat.dat' skip 1 using (read_time(fmt,1)):($3-0.01):2 with labels title ''