Dismiss Notice
Join Physics Forums Today!
The friendliest, high quality science and math community on the planet! Everyone who loves science is here!

Python Python plots for Cosmology

  1. Mar 4, 2017 #1
    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.
  2. jcsd
  3. Mar 4, 2017 #2


    User Avatar

    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
Share this great discussion with others via Reddit, Google+, Twitter, or Facebook

Have something to add?
Draft saved Draft deleted