#!/usr/local/bin/gnuplot -persist # set terminal pngcairo transparent enhanced font "arial,10" fontscale 1.0 size 600, 400 # set output 'stringvar.7.png' set xdata time set format x "% h" timedate set key inside left top vertical Right noreverse enhanced autotitle nobox unset parametric 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 11 Mar 15:39:33 PST 2023" 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 ''