File tree Expand file tree Collapse file tree
modules/collective-motion Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -37,8 +37,8 @@ for t in range(10):
3737# Plot the headings of the particles
3838plt.figure(figsize = (6 , 6 ))
3939plt.quiver(
40- xy[:, 0 ],
41- xy[:, 1 ],
40+ xy[0 ],
41+ xy[1 ],
4242 np.cos(theta),
4343 np.sin(theta),
4444 angles = ' xy' ,
@@ -98,8 +98,8 @@ for t in range(10):
9898# Plot the headings of the particles
9999plt.figure(figsize=(6, 6))
100100plt.quiver(
101- xy[:, 0],
102- xy[:, 1],
101+ xy[0],
102+ xy[1],
103103 np.cos(theta),
104104 np.sin(theta),
105105 angles='xy',
@@ -158,8 +158,8 @@ for t in range(10):
158158# Plot the headings of the particles
159159plt.figure(figsize=(6, 6))
160160plt.quiver(
161- xy[:, 0],
162- xy[:, 1],
161+ xy[0],
162+ xy[1],
163163 np.cos(theta),
164164 np.sin(theta),
165165 angles='xy',
@@ -218,8 +218,8 @@ for t in range(10):
218218# Plot the headings of the particles
219219plt.figure(figsize=(6, 6))
220220plt.quiver(
221- xy[:, 0],
222- xy[:, 1],
221+ xy[0],
222+ xy[1],
223223 np.cos(theta),
224224 np.sin(theta),
225225 angles='xy',
You can’t perform that action at this time.
0 commit comments