Menu

'xdata time' repeated dates on tics

Help
Anonymous
2001-06-01
2001-06-05
  • Anonymous

    Anonymous - 2001-06-01

    Hi!

    When I generate a graph with 'xdata time' the dates are repeated on the tics, like "Mar 2001 Mar 2001 Mar 2001 Apr 2001 Apr 2001 Apr 2001 May 2001 May 2001 May2001". Is there are way to get around this? (In this case I only have 3 points, one on each month)

     
    • Hans-Bernhard Broeker

      The tics are not really repeated. They are different, but due to your choice of x axis format string (with no day-of-month element in it), you can't see that.

      What happened is that gnuplot chose to display a tic
      every 2 weeks, instead of one per month. Choose a larger xrange, or place your xtics manually, or at least set an x tic interval of one month, and the problem will go away.

       
    • Anonymous

      Anonymous - 2001-06-05

      How do I set an xtic interval of one month? According to the documentation increments must be in seconds.

       
    • Hans-Bernhard Broeker

      set xtics 365.25/12*24*60*60

      Is one way. Days in one year, divided into 12 months, times 24 hours, 60 minutes, and 60 seconds

       
      • Anonymous

        Anonymous - 2001-06-05

        I added zero-value-lines for some previous months resulting in a larger xrange.
        Thanks for the superfast help!

         

Log in to post a comment.