How to draw the precise grid