We now floor the corner position and use this position as origin. This gives us perfect derivatives in all cases even if very far from the origin. Unfortunately this won't fix the low precision of coordinates used for computing the actual grid size, resulting in thick, non-smoothed lines. Also did a bit of refactor how the axes are drawn.