def gaussian(N=1000, draw=True, show=True, seed=42, color=None, marker='sphere'):
    """Show N random gaussian distributed points using a scatter plot."""
    import ipyvolume as ipv

    rng = np.random.RandomState(seed)  # pylint: disable=no-member
    x, y, z = rng.normal(size=(3, N))

    if draw:
        if color:
            mesh = ipv.scatter(x, y, z, marker=marker, color=color)
        else:
            mesh = ipv.scatter(x, y, z, marker=marker)
        if show:
            # ipv.squarelim()
            ipv.show()
        return mesh
    else:
        return x, y, z
def gaussian ( N = 1000 , draw = True , show = True , seed = 42 , color = None , marker = 'sphere' ) : import ipyvolume as ipv rng = np . random . RandomState ( seed ) x , y , z = rng . normal ( size = ( 3 , N ) ) if draw : if color : mesh = ipv . scatter ( x , y , z , marker = marker , color = color ) else : mesh = ipv . scatter ( x , y , z , marker = marker ) if show : ipv . show ( ) return mesh else : return x , y , z
Show N random gaussian distributed points using a scatter plot.