plot_hubble_diagram
Generates publication-style Hubble diagrams of distance modulus versus redshift for Type Ia supernova samples, with fiducial curves, residual panels, and covariance-binned residuals.
Instructions
Publication-style Hubble diagram: mu(z) with the fiducial curve and a residual panel.
Use to show a sample (cf. Brout+22 Fig. 4, DES 2024 Fig. 1): per-SN points with
diagonal errors (grey), full-covariance binned residuals (colour), the fiducial
model and Pantheon+ calibrators highlighted. Residuals have the best-fit offset removed
(M/H0 are degenerate), so only the SHAPE of mu(z) is meaningful.
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"output_dir": "<output_dir>"
},
"name": "plot_hubble_diagram"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| zmax | No | Upper z cut. | |
| zmin | No | z cut (None = release standard). | |
| fid_Om | No | Fiducial flat-LCDM Om (curve + residual reference). | |
| fid_w0 | No | Fiducial w0. | |
| fid_wa | No | Fiducial wa. | |
| n_bins | No | Binned residuals overlaid (0 = none). | |
| dataset | No | SN sample. | pantheonplus |
| output_dir | Yes | Directory for the PNG. | |
| calibrators | No | include | exclude | only (Pantheon+). | include |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| files | Yes | ||
| status | Yes | ||
| message | Yes | ||
| metadata | Yes |