You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The provided code snippet checks for shape and fill keys in agent data. If present, it adds them to the encoding_dict using the corresponding keys shape and fill. This allows you to define visual properties like circle shapes and filled elements for agents in your visualization.
In the old visualisation you could add values like
"Shape": "circle"
and"Filled": "true"
to theagent_portrayal
dict.With the new Solara based visualisation, that's not yet possible. It should be implemented in mesa/visualization/components. Somewhere around here:
mesa/mesa/visualization/components/altair.py
Lines 50 to 55 in 74e2df6
and maybe also in:
mesa/mesa/visualization/components/matplotlib.py
Lines 40 to 47 in 74e2df6
The text was updated successfully, but these errors were encountered: