I'm running a simple bit of code to produce a plot similar to this. However the plot I am getting from my code is empty - I assume this is a fairly simple error in my code as I'm new to this. My code is:
import matplotlib.pyplot as plt
import numpy as np
omega_0 = 0.6911
w_0 = -0.77
a = []
for a in range(0,1,100):
omega_phi = (omega_0*(a**(-3.0*w_0)))/((omega_0*(a**(-3.0*w_0))) + 1 - omega_0)
w = w_0 + (((w_0*(1.0 - w_0**2.0))/(1.0 - 2.0*w_0 + 4.0*w_0**2))*((omega_phi/(1.0 - omega_phi)))) + ((((-1.0)*w_0*(1.0 - w_0**2.0))/(1.0 - 3.0*w_0 + 12.0*w_0**2))*((omega_phi/(1.0 - omega_phi))**2.0)) + ((((1.0)*w_0*(1.0 - w_0**2.0))/(1.0 - 4.0*w_0 + 24.0*w_0**2))*((omega_phi/(1.0 - omega_phi))**3.0))
plt.plot(a,w)
plt.xlabel('a')
plt.ylabel('w')
plt.grid(True)
plt.show()
Any help is greatly appreciated.

aanywhere andwis getting overwritten each iteration.