Skip to content

Instantly share code, notes, and snippets.

@BrianMartell
Created July 19, 2025 17:14
Show Gist options
  • Select an option

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

Select an option

Save BrianMartell/3d1657692835c19be4bfbaf8b8a42d2a to your computer and use it in GitHub Desktop.
PUH-BrianMartell photon model
{
"type": "line",
"data": {
"labels": [0, 0.1, 1, 5, 6, 10, 13.8],
"datasets": [
{
"label": "CMB Photons",
"data": [1e89, 1e87, 1e84, 1e81, 7.5e80, 2e80, 1e80],
"borderColor": "#1e90ff",
"backgroundColor": "#1e90ff",
"fill": false,
"pointRadius": 4
},
{
"label": "Stellar Photons",
"data": [0, 0, 1e80, 5e81, 7e81, 5e82, 1e83],
"borderColor": "#ffa500",
"backgroundColor": "#ffa500",
"fill": false,
"pointRadius": 4
},
{
"label": "Total Photons",
"data": [1e89, 1e87, 1e84, 5.05e81, 7.075e81, 5.2e82, 1.01e83],
"borderColor": "#32cd32",
"backgroundColor": "#32cd32",
"fill": false,
"borderDash": [5, 5],
"pointRadius": 4
}
]
},
"options": {
"scales": {
"x": {
"title": { "display": true, "text": "Cosmic Time (Gyr)", "color": "#333" },
"ticks": { "color": "#333" }
},
"y": {
"type": "logarithmic",
"title": { "display": true, "text": "Photon Number (N_γ)", "color": "#333" },
"ticks": { "color": "#333" },
"min": 1e79,
"max": 1e90
}
},
"plugins": {
"title": { "display": true, "text": "PUH Photon Number Evolution", "color": "#333" },
"legend": { "labels": { "color": "#333" } }
}
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment