Skip to content

Commit 257a99e

Browse files
bergio13Datseris
andauthored
Animation in CellListMap example has title cutoff (#1147)
* Animation in CellListMap example has title cutoff Fixes #1068 * Animation in CellListMap example has title cutoff Fixes #1068 + space * Apply suggestions from code review --------- Co-authored-by: George Datseris <[email protected]>
1 parent 8cc8883 commit 257a99e

File tree

1 file changed

+5
-3
lines changed

1 file changed

+5
-3
lines changed

examples/celllistmap.jl

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -120,7 +120,7 @@ function initialize_bouncing(;
120120
k = 10 + 20 * rand(), # random force constants
121121
mass = 10.0 + 100 * rand(), # random masses
122122
vel = 100 * randn(SVector{2}) # initial velocities)
123-
)
123+
)
124124
add_agent!(pos, Particle, model, prop_particle...)
125125
end
126126

@@ -213,9 +213,11 @@ model = initialize_bouncing(number_of_particles=1000)
213213
abmvideo(
214214
"celllistmap.mp4", model;
215215
framerate=20, frames=200, dt=5,
216-
title="Softly bouncing particles with CellListMap.jl",
216+
title="Softly Bouncing Particles with CellListMap.jl",
217217
agent_size=p -> p.r,
218-
agent_color=p -> p.k
218+
agent_color=p -> p.k,
219+
figure=(size=(1280, 720),),
220+
title_kwargs=(fontsize=18,),
219221
)
220222

221223
# ```@raw html

0 commit comments

Comments
 (0)