Skip to content

Commit e75d0b6

Browse files
author
Daniel Precioso, PhD
committed
Reduce arrow scale in particle heading plots for improved visualization
1 parent 35cc6cc commit e75d0b6

1 file changed

Lines changed: 4 additions & 4 deletions

File tree

modules/collective-motion/vicsek-validation.qmd

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,7 @@ plt.quiver(
4343
np.sin(theta),
4444
angles='xy',
4545
scale_units='xy',
46-
scale=4, # bigger scale means smaller arrows
46+
scale=2, # bigger scale means smaller arrows
4747
)
4848
# Limit the plot to the box size
4949
plt.xlim(0, box_size)
@@ -104,7 +104,7 @@ plt.quiver(
104104
np.sin(theta),
105105
angles='xy',
106106
scale_units='xy',
107-
scale=4, # bigger scale means smaller arrows
107+
scale=2,
108108
)
109109
# Limit the plot to the box size
110110
plt.xlim(0, box_size)
@@ -164,7 +164,7 @@ plt.quiver(
164164
np.sin(theta),
165165
angles='xy',
166166
scale_units='xy',
167-
scale=4, # bigger scale means smaller arrows
167+
scale=2,
168168
)
169169
# Limit the plot to the box size
170170
plt.xlim(0, box_size)
@@ -224,7 +224,7 @@ plt.quiver(
224224
np.sin(theta),
225225
angles='xy',
226226
scale_units='xy',
227-
scale=4, # bigger scale means smaller arrows
227+
scale=2,
228228
)
229229
# Limit the plot to the box size
230230
plt.xlim(0, box_size)

0 commit comments

Comments
 (0)