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

Adding non-agent geoms to plot. How to plot a line (edge) between two agents? #808

Open
fargolo opened this issue May 20, 2023 · 1 comment
Assignees
Labels
plotting question Further information is requested

Comments

@fargolo
Copy link

fargolo commented May 20, 2023

I'm currently developing a simulation that checks for pairwise differences in an attribute.

I intend to plot a line (like a graph edge) whenever two agents present similar attributes.

Can I do it within abmexploration and abmvideo or would I have to build the plot from zero?

The development team did an awesome job with this software. Thank you all for this.

@Datseris Datseris self-assigned this Jun 8, 2023
@Datseris Datseris added question Further information is requested plotting labels Jun 8, 2023
@Datseris
Copy link
Member

Datseris commented Jun 8, 2023

You cannot do it with abmvideo but you can with abmplot. You can add additional interactive elements to your plot, such as lines, using Makie's Observable system. Then you can make a video out of it. Just have a look at the documentation online for making custom videos. You don't have to plot the new elements into a completely new axis. You can plot them in the axis the ABM is plotted. (the axis is ax = content(fig[1,1][1,1]).

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
plotting question Further information is requested
Projects
None yet
Development

No branches or pull requests

2 participants