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

In summary, the conversation discusses a code that solves the Friedmann equation with quintessence using a scalar field potential. The code includes initial values, a time evolution loop, and plots. The person is seeking advice on how to plot different values of the free parameter, alpha, in the same plot with annotations. A link to a useful resource is also provided.
  • #1
arnazkh
1
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!
 
Technology news on Phys.org
  • #2
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
 

Similar threads

Replies
3
Views
2K
Replies
5
Views
3K
Replies
2
Views
1K
Replies
0
Views
210
Replies
3
Views
2K
Replies
18
Views
3K
Back
Top