|
From: Thomas S. <t.s...@fz...> - 2008-03-13 13:05:23
|
> I've got a "by day" graph, with the x axis as dates. I'd like my major tic marks to be weeks. > I know how to control tic marks and turn on a grid, but the date part is > confusing me. Hints? set xtics "2008-03-10",7*24*60*60 set xrange ['2008-03-10':'2008-05-01'] the starting date is converted into seconds internally (starting at '2000/01/01 00:00:00 UTC'), the increment is given in seconds. (you could instead write "2000-01-08" which is also 1 week: set xtics "2008-03-10","2000-01-08" ;-) the mxtics are set automatically. if your xrange exceeds 20 weeks, gnuplot switches to monthly xtics. (in case you have a problem with this behaviour, there is a patch: http://sourceforge.net/tracker/index.php?func=detail&aid=1908019&group_id=2055&atid=302055 ) -- View this message in context: http://www.nabble.com/Controlling-major-tic-marks-when-x-axis-is-a-date-tp16015069p16025205.html Sent from the Gnuplot - User mailing list archive at Nabble.com. |