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

Python plots for Cosmology

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

    aOe

    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
     
Know someone interested in this topic? Share this thread via Reddit, Google+, Twitter, or Facebook

Have something to add?
Draft saved Draft deleted



Similar Discussions: Python plots for Cosmology
  1. Book on python plots (Replies: 2)

  2. Python installation (Replies: 10)

  3. Matlab and Python (Replies: 10)

Loading...