Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Remove deprecated keyword from tutorial #1138

Merged
merged 3 commits into from
Feb 12, 2025
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion Project.toml
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
name = "Agents"
uuid = "46ada45e-f475-11e8-01d0-f70cc89e6671"
authors = ["George Datseris", "Tim DuBois", "Aayush Sabharwal", "Ali Vahdati", "Adriano Meligrana"]
version = "6.2.4"
version = "6.2.5"

[deps]
CSV = "336ed68f-0bac-5ca0-87d4-7b16caf5d00b"
Expand Down
2 changes: 1 addition & 1 deletion docs/src/tutorial.jl
Original file line number Diff line number Diff line change
Expand Up @@ -600,7 +600,7 @@ groupmarker(a) = a.group == 1 ? :circle : :rect

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

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

# The function [`abmvideo`](@ref) can be used to save an animation of the ABM into a video.
Expand Down
2 changes: 1 addition & 1 deletion examples/agents_visualizations.jl
Original file line number Diff line number Diff line change
Expand Up @@ -239,7 +239,7 @@ for i in 1:100; step!(abmobs, 1); end
fig

# ## GraphSpace models
# While the `ac, as, am` keyword arguments generally relate to *agent* colors, markersizes,
# While the `agent_color, agent_size, agent_marker` keyword arguments generally relate to *agent* colors, markersizes,
# and markers, they are handled a bit differently in the case of [`GraphSpace models`](https://juliadynamics.github.io/Agents.jl/stable/api/#Agents.GraphSpace).
# Here, we collect those plot attributes for each node of the underlying graph which can
# contain multiple agents.
Expand Down
2 changes: 1 addition & 1 deletion src/visualizations.jl
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ See also [`abmvideo`](@ref) and [`abmexploration`](@ref).
```
Notice that for 2D models, `agent_marker` can be/return a `Makie.Polygon` instance, which plots each agent
as an arbitrary polygon. It is assumed that the origin (0, 0) is the agent's position when
creating the polygon. In this case, the keyword `as` is meaningless, as each polygon has
creating the polygon. In this case, the keyword `agent_size` is meaningless, as each polygon has
its own size. Use the functions `scale, rotate_polygon` to transform this polygon.

3D models currently do not support having different markers. As a result, `agent_marker` cannot be
Expand Down
Loading