Fix axis range growing infinitely if we have no data or zero-range.

Fix axis range growing infinitely if we have no data or zero-range.
Before, the padding was applied over and over again.