Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Treat axis as date/time (epoch)

I'm generating a graph with gnuplot of activity over the last twenty four hours, but the time axis looks really bad because it's trying to fit the long number for every five minutes in the last day.

Is there any way for gnuplot to treat the x-axis as an epoch time, and mark every hour or so?

like image 925
Jeffrey Aylesworth Avatar asked Nov 20 '09 01:11

Jeffrey Aylesworth


1 Answers

Is this what you want?

set xdata time
set timefmt "%s"
# set xtics 3600
set format x "%H:%M:%S" # or whatever
plot ...
like image 66
Alok Singhal Avatar answered Oct 13 '22 22:10

Alok Singhal