How Can I Plot Multiple Alpha Values in Cosmology Using Python?

Join the discussion
Ask a follow-up here, or get your own question answered by working scientists, mathematicians and engineers — people, not an autocomplete.
Real named experts · corrections over time · the nuance an AI answer skips
1 reply · 2K views
arnazkh
Messages
1
Reaction score
0
Hello!
I've been working on a code that solves the Friedmann equation with quintessence using a scalar field potential of the form x^(-alpha) where alpha is a free parameter. I would like to plot different values of alpha in the same plot with annotations for each. For now, my code has initial values, then a time evolution loop for the differential equations and then the plots. How do I do this? I'd prefer getting answers without me having to paste the code.
Thanks!
 
Physics news on Phys.org
Hello, you should check the packages matplotlib, or pylab if you are familiarize with matlab. They have several options to make what you are asking for.
Here is a link that could be useful: http://matplotlib.org/api/pyplot_api.html