'Limit the domain to positive values.'

def limit_range_for_scale(self, vmin, vmax, minpos):

    if (not np.isfinite(minpos)):
        minpos = 1e-300
    return ((minpos if (vmin <= 0) else vmin), (minpos if (vmax <= 0) else vmax))
