lib/mpl_toolkits/mplot3d/art3d.py
def zalpha(colors, zs):
    """Modify the alphas of the color list according to depth"""
    colors = get_colors(colors, len(zs))
    norm = Normalize(min(zs), max(zs))
    sats = 1 - norm(zs) * 0.7
    colors = [(c[0], c[1], c[2], c[3] * s) for c, s in zip(colors, sats)]
    return colors
Modify the alphas of the color list according to depth
Modify the alphas of the color list according to depth
Modify the alphas of the color list according to depth
def zalpha(colors, zs):
    colors = get_colors(colors, len(zs))
    norm = Normalize(min(zs), max(zs))
    sats = 1 - norm(zs) * 0.7
    colors = [(c[0], c[1], c[2], c[3] * s) for c, s in zip(colors, sats)]
    return colors
def zalpha ( colors , zs ) : colors = get_colors ( colors , len ( zs ) ) norm = Normalize ( min ( zs ) , max ( zs ) ) sats = 1 - norm ( zs ) * 0.7 colors = [ ( c [ 0 ] , c [ 1 ] , c [ 2 ] , c [ 3 ] * s ) for c , s in zip ( colors , sats ) ] return colors
Modify the alphas of the color list according to depth
Modify the alphas of the color list according to depth
"""Modify the alphas of the color list according to depth"""
colors
zs