using gnuplot for time plotting

2011-02-17 1 min read Learning Linux

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.

  <td>
    <div class="text codecolorer">
      gnuplot> set xdata time<br /> <br /> gnuplot> set timefmt "%Y-%m-%d"<br /> <br /> gnuplot> plot "sample.dat" using 1:2 with boxes
    </div>
  </td>
</tr>
1
2
3
4
5
Enhanced by Zemanta
comments powered by Disqus