# Line¶

Let us draw a trajectory of N steps of an approximation to the Wiener Process in three dimensions.

Below, a blue thin line is a trajectory and the total displacement is shown with red thick line.

Line takes data as an array of coordinates [number_of_points,3].

[10]:

import numpy as np
import k3d
plot = k3d.plot(name='Wiener process')
N = 1000
traj = np.cumsum(np.random.randn(N,3).astype(np.float32),axis=0)

[ ]: