tolerate non-integral grid ticks, useful if you set the axis maximum to a number that is not an even space