using gnuplot for time plotting

Couple of days back, I was working with some data and wanted to plot it. I had couple of options Excel, ploticus and then our own gnuplot. My choice here was gnuplot, as this is most commonly available and helps me write scripts that can automate my repetitive task. So far, so good. The data I was plotting was against time, that was the problem. Couple of quick searches did not result into any luck to get me on the path and hence with some man pages and some documentation, finally I found this, might be this will be helpful for others.

gnuplot> set xdata time

gnuplot> set timefmt "%Y-%m-%d"

gnuplot> plot "sample.dat" using 1:2 with boxes
Enhanced by Zemanta

About Amit Agarwal

1 Trackback on “using gnuplot for time plotting”