Open rmhopkins4 opened 2 weeks ago
What if there is an arbitrary kwargs
that you can pass to nx.draw
, ax.plot
, and so on, to expose their full API?
Oh, the layout has to be initialized separately from nx.draw
, so this needs a separate kwarg.
I got around this by just creating a custom viz: https://github.com/projectmesa/mesa-examples/blob/main/examples/aco_tsp/app.py#L39
Currently, without implementing a custom drawer, networks are always drawn with the spring layout. A way to customize this would be well appreciated, whether it be in the
agent_portrayal
or in the model itself (which does somewhat violate the separation of model & visualization).