Since the _get_pixel_distance_along_axis routine is supposed to return a distance
in data coordinates, it should return 0.0 instead of 0 when appropriate.