-
Notifications
You must be signed in to change notification settings - Fork 925
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
viz: Automatically visualize Cell color attributes in cell space
This change adds automatic visualization of Cell color attributes in the Mesa cell space visualization. When a Cell has a color attribute, it will now be automatically rendered in the space visualization without requiring manual configuration. Key changes: - Update orthogonal grid drawing to show cell colors using imshow - Update hex grid drawing to show cell colors using PatchCollection - Handle invalid colors gracefully with warnings - Keep existing agent and grid line visualization behavior - Add documentation with examples Colors can be specified using any valid matplotlib color format (names, hex codes, RGB/RGBA tuples). The visualization maintains proper layering with cell colors appearing behind agents and grid lines. Cell colors are now fully optional - cells without color attributes will be transparent/unfilled just like before.
- Loading branch information
Showing
1 changed file
with
77 additions
and
45 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters