Fixed drawing code for axis and ticks.
Merge pull request #1 from paul-hoehne/recalc-major-spacing

Fixed drawing code for axis and ticks.