Fix the axis ticks for larger tick sizes

When having larger axis ticks (for longer periods, this could e.g. be one week) the axis ticks show meaningless values (weekday and time of day). Print appropriate axis ticks depending on the actual axis tick size.
Merge pull request #332 from fhackenberger/patch-1

Fix the axis ticks for larger tick sizes