Closed SaicharanRitwik39 closed 7 months ago
Is it possible to visualize individual trajectories? For example: Suppose in the following code, I get the dynamics of 4 compartments.
model.set_initial_status(config) iterations = model.iteration_bunch(200) trends = model.build_trends(iterations)
viz = DiffusionTrend(model, trends) viz.plot()
How can I just visualize one of the trajectories?
You can use the TrendComparison plot passing a single model, its trends, and specifying the compartment(s) you are interested in (the default is 'Infected').
Thank you so much! It worked.
Is it possible to visualize individual trajectories? For example: Suppose in the following code, I get the dynamics of 4 compartments.
Simulation execution
model.set_initial_status(config) iterations = model.iteration_bunch(200) trends = model.build_trends(iterations)
viz = DiffusionTrend(model, trends) viz.plot()
How can I just visualize one of the trajectories?