Skip to content

Conversation

quaquel
Copy link
Member

@quaquel quaquel commented Jan 10, 2025

This reimplements draw_voroinoi and makes it behave identically to draw_hexgrids. This, therefore, removes cell_coloring_property from the Voronoi grid. It also adds the draw_grid boolean to draw_voroinoi which is also available for all other discrete spaces.

Any future work on further developing the API for controlling how to draw a space itself such as #2438 and #2557, now at least can start from an underlying consistent code base.

Before
Unknown

After
Unknown2

Closes #2437 and #2549

@quaquel quaquel merged commit baf5c87 into projectmesa:main Jan 10, 2025
11 checks passed
@EwoutH EwoutH added enhancement Release notes label visualisation labels Jan 11, 2025
@quaquel quaquel deleted the voroinoi branch February 12, 2025 18:46
tpike3 pushed a commit to tpike3/mesa that referenced this pull request Mar 25, 2025
* reimplementation of draw_voroinoi

* [pre-commit.ci] auto fixes from pre-commit.com hooks

for more information, see https://pre-commit.ci

---------

Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

enhancement Release notes label visualisation

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Minor refactoring of VoroinoiGrid

2 participants