Re: [Matplotlib-users] Difference Between Scatter and Plot? (Zig-Zag)--Solution

2010-02-07 Thread Wayne Watson
(I see I forgot to post this solution to the list. I really have quickly developed a dislike for having to go to extra lengths to make sure this happens. Perhaps one of my difficulties is that some people respond directly to me, and my mail filter shuttles the message to my matplotlib folder

Re: [Matplotlib-users] Difference Between Scatter and Plot? (Zig-Zag)--Solution

2010-02-07 Thread Alan G Isaac
Wayne Watson wrote: The cumsum (summation) buffaloes me. That is just to create some artificial data, to illustrate. If you have the coordinates in a 2 by N array named `locs`, just use the last 2 lines. If you already have the coordinates separated into arrays x and y, just use the last

Re: [Matplotlib-users] Difference Between Scatter and Plot? (Zig-Zag)

2010-02-05 Thread Alan G Isaac
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))

Re: [Matplotlib-users] Difference Between Scatter and Plot? (Zig-Zag)

2010-02-04 Thread Wayne Watson
Simply explained what I'm looking for is a way to draw a zig-zag path indicating a path taken by a particle. Maybe this is best done with some tools outside of the normal plot capabilities? On 2/4/2010 9:02 PM, Wayne Watson wrote: Is there a difference between the two (Subject). Perhaps plot

Re: [Matplotlib-users] Difference Between Scatter and Plot? (Zig-Zag)

2010-02-04 Thread Eric Firing
Wayne Watson wrote: Simply explained what I'm looking for is a way to draw a zig-zag path indicating a path taken by a particle. Maybe this is best done with some tools outside of the normal plot capabilities? Why doesn't plot handle this? What do you see as missing? On 2/4/2010 9:02 PM,