Skip to content

Instantly share code, notes, and snippets.

@BrianMartell
Created December 6, 2025 06:33
Show Gist options
  • Select an option

  • Save BrianMartell/e349979c32d0080a277320186abf9fa7 to your computer and use it in GitHub Desktop.

Select an option

Save BrianMartell/e349979c32d0080a277320186abf9fa7 to your computer and use it in GitHub Desktop.
PUH-BrianMartell PUH_v6_GW_Photon_Redshift_Sim.py- updated new Py code
import numpy as np
import matplotlib.pyplot as plt
z = np.linspace(0, 3, 500)
a = 1/(1+z)
plt.figure(figsize=(8,5))
plt.plot(z, a, 'b-', label='Scale factor a(z)')
plt.xlabel('Redshift z')
plt.ylabel('Scale factor a')
plt.title('PUH v6: Identical Redshift for GW & Photons')
plt.legend()
plt.grid(True)
plt.savefig('puh_gw_photon_redshift.png', dpi=300)
plt.show()
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment