Two new model methods, add_state_graph and add_state_bar_chart, can now be used to create charts that show the distribution of agent states, rather than a model variable.
For example, in the context of epidemic.py, an agent might have an attribute:
agent.infection_state = "normal" # May be "normal", "infected" or "immune"
Charts that show the state distribution over all agents may be created by using:
Two new model methods,
add_state_graph
andadd_state_bar_chart
, can now be used to create charts that show the distribution of agent states, rather than a model variable.For example, in the context of
epidemic.py
, an agent might have an attribute:Charts that show the state distribution over all agents may be created by using: