You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Enhance Vicsek animation documentation: add optional steps for order parameter and noise plots, and clarify implementation details for sliders and animation updates.
**Optional:** You can skip this step and just create an empty plot with `ax_noise.plot([], [])` for now. We will fill in the details later.
243
+
240
244
In this plot we will track how the order parameter $r$ changes as we explore different noise levels $\eta$ with the slider. Visually, we expect to see a curve that starts near $r=1$ at low noise, and drops towards $r=0$ as noise increases. See @fig-vicsek-anim-noise-plot for an example (using mock data).
@@ -489,13 +496,55 @@ This reduces glitches while you resize arrays or change plot limits.
489
496
490
497
---
491
498
492
-
## Put it all together (full script)
499
+
## Full Script
493
500
494
501
At this point you have built every piece.
495
502
Below is a sample of how your `run_simulation` function might look with all the pieces assembled.
496
503
497
504
::: {.callout-tip collapse="true"}
498
-
## Full `run_simulation()`
505
+
## Solution: Simplified `run_simulation()`
506
+
507
+
This is a simplified version that assumes you have not implemented the order plot or noise plot, neither the sliders, yet. It focuses on the particle animation.
0 commit comments