mesa icon indicating copy to clipboard operation
mesa copied to clipboard

Multiline plot is not yet documented

Open rht opened this issue 1 year ago • 0 comments

What's the problem this feature will solve? #1941 was merged without documentation because it modified an internal function. It should have public documentation.

Additional context Example usage for virus on network

page = JupyterViz(
    VirusOnNetwork,
    model_params,
    measures=[
        # This is subject to change, as it could have been
        # {"Infected": {"color": "tab:red"}}, but let's keep it simple.
        {"Infected": "tab:red", "Susceptible": "tab:green", "Resistant": "tab:gray"},
        # Alternatively, if you don't want to manually specify colors:
        # ["Infected", "Susceptible", "Resistant"],
        make_text(get_resistant_susceptible_ratio),
    ],
    name="Virus Model",
    agent_portrayal=agent_portrayal,
)

It should look like this.

rht avatar Sep 07 '24 14:09 rht