Fix ticks inf

Update implementation of https://github.com/enthought/chaco/pull/126

This will always be either `False` or a `TypeError`. If `value` is a python `float` then `value is float` is `False` because `is` checks for identity, not class membership. You probably wanted `isinstance(value, (float, numpy.floating))`.