Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Individual Trajectories #255

Closed
SaicharanRitwik39 opened this issue Apr 20, 2024 · 2 comments
Closed

Individual Trajectories #255

SaicharanRitwik39 opened this issue Apr 20, 2024 · 2 comments

Comments

@SaicharanRitwik39
Copy link

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?

@GiulioRossetti
Copy link
Owner

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').

@SaicharanRitwik39
Copy link
Author

Thank you so much! It worked.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants