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

Network Visualization for Agents on the Network Nodes #591

Closed
DrTao opened this issue Oct 3, 2018 · 1 comment
Closed

Network Visualization for Agents on the Network Nodes #591

DrTao opened this issue Oct 3, 2018 · 1 comment

Comments

@DrTao
Copy link

DrTao commented Oct 3, 2018

What's the problem this feature will solve?
It looks as though the current Network Visualization shows the base network but cannot show the agents.

Describe the solution you'd like
I'd developed a workable extension for Swarm (GeoGraphs) a while back that solved this nicely.

We showed agents as circles smaller than the nodes (relative radii are parms), where each agent's pos=(x,y) was centered on the node's center and then each agent's pos varied by a specified radius and tiny random scatter so they were not all right on top of one another. We also allowed different colors/types of agents to display at different quadrants / directions from the node, so we could see the relative size of the blue-agent crowd on each node, etc.

See image below, where base network nodes are white and agents are smaller and with colors.

viz-agents-on-network-nodes__geographs_dibble_2001

Additional context
This could very greatly extend the power of mesa in cool ways. :)

@quaquel
Copy link
Member

quaquel commented Oct 30, 2024

#2430 reimplements the network visualization to now use ax.scatter. It does not by default do this offset for multiple agents, but it would be quite easy to build a custom visualization by using the existing matplotlib network visualization as a template.

@quaquel quaquel closed this as not planned Won't fix, can't repro, duplicate, stale Oct 30, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants