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!
Log in to post a comment.
Sign up for the SourceForge newsletter:
You seem to have CSS turned off.
Please don't fill out this field.