plot_cmb_spectra
Plot CMB D_ell bandpowers with error bars across Planck, ACT, and SPT datasets, overlay LCDM theory, and add residual panels for cross-experiment comparison.
Instructions
Plot D_ell bandpowers with error bars for one or more experiments + LCDM + residuals.
Use to reproduce the Planck 2018 TT/TE/EE figure (datasets=['planck_pr3']) or the
SPT-3G D1 / ACT DR6 / Planck overlay (Camphuis+25 Fig.1: ['planck_pr3','act_dr6','spt3g_d1'],
log_y=True for TT/EE). Residuals are D_ell - theory with the same errors.
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_cmb_spectra"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| log_x | No | Logarithmic ell axis. | |
| log_y | No | Logarithmic D_ell axis (TT/EE high-ell damping tail). | |
| ell_max | No | Upper ell limit for the x axis (0 = auto). | |
| datasets | No | Experiments to overlay. | |
| spectrum | No | Spectrum to plot. | TT |
| output_dir | Yes | Directory for the PNG. | |
| show_theory | No | Overlay best-fit LCDM. | |
| theory_file | No | Theory CSV (compute_lcdm_theory_spectrum); default = bundled Planck 2018 best fit. | |
| residual_panel | No | Add a (data - theory) panel below. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| files | Yes | ||
| status | Yes | ||
| message | Yes | ||
| metadata | Yes |