gwpopulation_pipe.post_plots.redshift_spectrum_plot

redshift_spectrum_plot(results, args, rate=True, save=True)[source]

Make the posterior redshift plot given either one or multiple result objects.

Parameters:
results: [list, `bilby.core.result.Result`]

Bilby result(s) to make the spectra from.

args: ArgumentParser

The arguments describing the model.

rate: bool

Whether to scale the spectra by the inferred rate.

save: bool

Whether to save the result to file.

Returns:
[dict, matplotlib.pyplot.Figure]

If save the data behind the plot is returned as a dictionary. Else, the figure handle is returned.