mesa icon indicating copy to clipboard operation
mesa copied to clipboard

Update visualization tutorial with PropertyLayers

Open EwoutH opened this issue 2 years ago • 6 comments

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 avatar Oct 10 '24 20:10 EwoutH

@EwoutH can you please guide me about this issue

wareeshaali2003 avatar Mar 19 '25 17:03 wareeshaali2003

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.

Sahil-Chhoker avatar Mar 20 '25 06:03 Sahil-Chhoker

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.

quaquel avatar Mar 20 '25 07:03 quaquel

Anyone have any idea what the status of this is (CC @tpike3)?

EwoutH avatar May 09 '25 19:05 EwoutH

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.

Sahil-Chhoker avatar Aug 25 '25 03:08 Sahil-Chhoker

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:

  1. 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.
  2. 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).
  3. 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

Dilraj07 avatar Sep 11 '26 20:09 Dilraj07