Showing content from https://github.com/projectmesa/mesa/issues/2138 below:
Visualize PropertyLayers · Issue #2138 · projectmesa/mesa · GitHub
Our new (and current) visualization doesn't support visualising PropertyLayers yet. It would be really great if it could do that.
I think you need to decide if you want to use matplotlib or altair for it, and then add it either here:
def SpaceMatplotlib(model, agent_portrayal, dependencies: list[any] | None = None): space_fig = Figure() space_ax = space_fig.subplots() space = getattr(model, "grid", None) if space is None: # Sometimes the space is defined as model.space instead of model.grid space = model.space if isinstance(space, mesa.space.NetworkGrid): _draw_network_grid(space, space_ax, agent_portrayal) elif isinstance(space, mesa.space.ContinuousSpace): _draw_continuous_space(space, space_ax, agent_portrayal)
or here
def SpaceAltair(model, agent_portrayal, dependencies: list[any] | None = None): space = getattr(model, "grid", None) if space is None: # Sometimes the space is defined as model.space instead of model.grid space = model.space
RetroSearch is an open source project built by @garambo
| Open a GitHub Issue
Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo
HTML:
3.2
| Encoding:
UTF-8
| Version:
0.7.4