Update visualization tutorial with PropertyLayers
Now that PropertyLayers can be visualized (https://github.com/projectmesa/mesa/pull/2336), it would be nice to include that in the visualization tutorial.
@EwoutH can you please guide me about this issue
Hey @wareeshaali2003, thanks for your interest in this issue!
For some background, property layers were introduced in Mesa through PR #1898 and have been an integral part of the framework since then. Later, a way to visualize property layers was added in PR #2336. However, there is currently no discussion of visualizing or incorporating property layers in any of the tutorials.
This issue aims to address that. You can experiment with property layers yourself and consider creating a tutorial dedicated to them. For an example model, check out this link.
Note however that there are also various open discussions and questions pointing to the need to improve support for how property layers are being visualized.
Anyone have any idea what the status of this is (CC @tpike3)?
I created a basic tutorial on visualizing property layers, which you can find here: link. However, it’s still quite simple, and I think we need a more comprehensive tutorial that fully explains both the use and visualization of property layers.
Hi @Sahil-Chhoker @EwoutH @tpike3,
Checking in on this. I went through the current notebook for property layer visualization. It covers the basics of PropertyLayerStyle well, but as Sahil noted, it would be great to make it more comprehensive for modellers.
If no one is currently working on this, I would be happy to help expand it. Here are a few concrete additions I can make:
- Dynamic Layer Updates: Show a layer that changes at each step during the simulation (such as resource regeneration or diffusion) rather than just a static layer.
- Agent and Layer Interaction: Add a simple example of agents interacting with the layer (such as consuming a property from a cell and observing the visual change in real time).
- Multiple Layers: Demonstrate how the portrayal function cleanly styles multiple layers with different color maps and alpha values.
Please let me know if expanding the current notebook with these additions sounds like the right direction.
Thanks