I'm using gnuplot to plot time-dependent data.
The samples are taken every 5 minutes or so and I have 200 samples.
I plot these with the x axis formatted to
set format x "%H:%M"
Ideally, I'd like to print the date whenever the x-axis crosses midnight... but only when it crosses midnight. Something like:
22:00 22:30 23:00 23:30 00:00 00:30 01:00
2010-11-17
Any gnuplot gurus out there know a way to do this?
Its a good question.
The following is based on t16web.lanl.gov/Kawano/gnuplot/plot4-e.html#5.12.
You basically need to plot the data twice, once for each axis. The second time I plot the data, I move the actual plot out of range (by subtracting 1000) so that only one plot is drawn. The following shell script generates the data and plots it as in the graph below.
Hope this is what you want.
All the best,
Tom