Skip to content

Commit 14a36df

Browse files
authored
Remove deprecated keyword from tutorial (#1138)
* change deprecated name `as` * update toml and other `as`
1 parent db0dbf5 commit 14a36df

File tree

4 files changed

+4
-4
lines changed

4 files changed

+4
-4
lines changed

Project.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
name = "Agents"
22
uuid = "46ada45e-f475-11e8-01d0-f70cc89e6671"
33
authors = ["George Datseris", "Tim DuBois", "Aayush Sabharwal", "Ali Vahdati", "Adriano Meligrana"]
4-
version = "6.2.4"
4+
version = "6.2.5"
55

66
[deps]
77
CSV = "336ed68f-0bac-5ca0-87d4-7b16caf5d00b"

docs/src/tutorial.jl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -600,7 +600,7 @@ groupmarker(a) = a.group == 1 ? :circle : :rect
600600

601601
# We pass those functions to [`abmplot`](@ref)
602602

603-
figure, _ = abmplot(schelling; agent_color = groupcolor, agent_marker = groupmarker, as = 10)
603+
figure, _ = abmplot(schelling; agent_color = groupcolor, agent_marker = groupmarker, agent_size = 10)
604604
figure # returning the figure displays it
605605

606606
# The function [`abmvideo`](@ref) can be used to save an animation of the ABM into a video.

examples/agents_visualizations.jl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -239,7 +239,7 @@ for i in 1:100; step!(abmobs, 1); end
239239
fig
240240

241241
# ## GraphSpace models
242-
# While the `ac, as, am` keyword arguments generally relate to *agent* colors, markersizes,
242+
# While the `agent_color, agent_size, agent_marker` keyword arguments generally relate to *agent* colors, markersizes,
243243
# and markers, they are handled a bit differently in the case of [`GraphSpace models`](https://juliadynamics.github.io/Agents.jl/stable/api/#Agents.GraphSpace).
244244
# Here, we collect those plot attributes for each node of the underlying graph which can
245245
# contain multiple agents.

src/visualizations.jl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ See also [`abmvideo`](@ref) and [`abmexploration`](@ref).
3030
```
3131
Notice that for 2D models, `agent_marker` can be/return a `Makie.Polygon` instance, which plots each agent
3232
as an arbitrary polygon. It is assumed that the origin (0, 0) is the agent's position when
33-
creating the polygon. In this case, the keyword `as` is meaningless, as each polygon has
33+
creating the polygon. In this case, the keyword `agent_size` is meaningless, as each polygon has
3434
its own size. Use the functions `scale, rotate_polygon` to transform this polygon.
3535
3636
3D models currently do not support having different markers. As a result, `agent_marker` cannot be

0 commit comments

Comments
 (0)