Refactor tick rotation calculation to depend only on pixel-to-world transformation.
Add a new experimental mode for drawing grid lines using contour - this avoids ever needing a world-to-pixel transformation which is ill-defined if distortions are present or when slicing a cube.