jesterTOV.inference.postprocessing.postprocessing.make_mass_lambda_ratio_plot

jesterTOV.inference.postprocessing.postprocessing.make_mass_lambda_ratio_plot#

make_mass_lambda_ratio_plot(data, outdir, injection_data, plot_format='pdf')[source]#

Create a mass-Lambda ratio plot relative to the injection.

At each mass grid point the ratio \(\Lambda / \Lambda_{\rm inj}\) is computed for every valid posterior sample by interpolating both curves onto a common mass grid. The 90% credible interval (HDI) and median are shown as a filled band; the injection appears as a horizontal reference at unity.

Parameters:
  • data (dict) – EOS data dictionary.

  • outdir (str) – Output directory.

  • injection_data (dict) – Injection EOS data. Must contain "masses_EOS" and "Lambda_EOS".

Return type:

None