On 2/5/2010 12:51 AM, Wayne Watson wrote:
>  what I'm looking for is a way to draw a zig-zag path
>  indicating a path taken by a particle

Here is a 2d example:

 >>> import numpy as np
 >>> import matplotlib.pyplot as plt
 >>> locs = np.random.random_sample((2,30))
 >>> locs = np.random.random_sample((2,30)) - 0.5
 >>> locs = np.cumsum(locs, axis=-1)
 >>> x,y = locs
 >>> plt.plot(x,y)

hth,
Alan Isaac


------------------------------------------------------------------------------
The Planet: dedicated and managed hosting, cloud storage, colocation
Stay online with enterprise data centers and the best network in the business
Choose flexible plans and management services without long-term contracts
Personal 24x7 support from experience hosting pros just a phone call away.
http://p.sf.net/sfu/theplanet-com
_______________________________________________
Matplotlib-users mailing list
Matplotlib-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/matplotlib-users

Reply via email to