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)
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
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.
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
Anonymous
-
2001-06-05
How do I set an xtic interval of one month? According to the documentation increments must be in seconds.
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
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)
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.
How do I set an xtic interval of one month? According to the documentation increments must be in seconds.
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
I added zero-value-lines for some previous months resulting in a larger xrange.
Thanks for the superfast help!