plot_sn_contours
Plot 68%/95% credible contours for a chosen supernova cosmology parameter pair from fit CSV files, with optional sample overlays and LCDM markers.
Instructions
Plot 68%/95% credible contours (HPD of the gridded marginal posterior) for one parameter pair.
Use after fit_sn_cosmology (wcdm: Om-w; w0wacdm: w0-wa or Om-w0) to reproduce the
familiar SN contour figures (Brout+22 Fig. 9, DES 2024 Fig. 4, Rubin+23 Fig. 9);
pass several CSVs to overlay samples.
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>",
"contour_csvs": "<contour_csvs>"
},
"name": "plot_sn_contours"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| labels | No | Legend labels (default: file stems). | |
| show_lcdm | No | Mark w = -1 / (w0, wa) = (-1, 0). | |
| output_dir | Yes | Directory for the PNG. | |
| contour_csvs | Yes | 2D contour CSVs from fit_sn_cosmology (`*_2d_<a>_<b>.csv`), all for the same parameter pair. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| files | Yes | ||
| status | Yes | ||
| message | Yes | ||
| metadata | Yes |