Skip to content

SolaraViz make_space_component(backend="matplotlib") crashes if no agents left. #2822

@Lezhor

Description

@Lezhor

Describe the bug
My make_space_component() component in SolaraViz works normally (with the matplotlib backeend). However once all Agents finished running and are removed from the Model SolaraViz crashes.

Expected behavior
Well I'd like it not to crash please...
Just don't draw any agents if no agents are left.

Additional context
I also have an agent_portrayal which changes color and size based on agent state.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions