Changed how logic determined when to draw tickmarks for better scaling.