Fixed _format_labels in tile.py for np.inf.

Since the fractional part of np.inf is 0.0 it is enough to change the
formatter string in this case to the (nearly) equivalent "%.0f".
Merge pull request #4954 from filmor/format-labels-fix

BUG: Fixed _format_labels in tile.py for np.inf.