1

I have a text file containing data like this:

   Date          Hour         Data
2014/01/01        00            5
2014/01/01        01            10
2014/01/01        02            7
2014/01/01        03            6
.
.
.
2014/01/01        23            4
2014/01/02        00            6
2014/01/02        01            9
2014/01/02        02            2
.
.
.

I want to plot the file in gnuplot with "Data" on y axis and "Hour" on x axis which I know how to do that. I also want that when "Hour" value is "00" (or at the changing of dates) the related "Date" appears on the x axis instead of "Hour". any idea?

gnome
  • 573
  • 1
  • 6
  • 19
  • 2
    You might want to take a look at [this question](http://stackoverflow.com/questions/25300032/how-to-change-the-time-format-based-on-its-data) – Tom Fenech Aug 17 '14 at 11:33
  • 1
    @TomFenech Yes, its a duplicate of that question, the solution works fine for me after adapting the time formats. I voted for closing this one here. – Christoph Aug 19 '14 at 11:16

0 Answers0