def nice_log(x):
    """
    Uses a log scale but with negative numbers.

    :param x: NumPy array
    """
    neg = x < 0
    xi = np.log2(np.abs(x) + 1)
    xi[neg] = -xi[neg]
    return xi
dataset/ETHPy150Open daler/metaseq/metaseq/plotutils.py/nice_log/original