Closed annalena-k closed 3 months ago
I checked the functionality again, it works as intended:
result.plot_corner
includes the non-fixed parameters as well as log_prob, log_prior, weights, etc.parameters=["chirp_mass", "mass_ratio"]
, you only get the 2D corner plot.
Upon discussion with Stephen, I changed how the truth values and truth color are passed to
result.plot_corner()
andplot_corner_multi()
.The reasoning behind this is the following:
truth_color
is included in the**kwargs
and the description is removed since it is exactly acorner
kwarg and does not get modified.truths
is passed as a kwarg toplot_corner_multi()
. There,truths
needs to be a list with the values in exactly the same order as the values withinsamples
. However, this order is specified withinresult.plot_corner()
by the order of theparameter
list. Therefore, we need to pass the truth values as a dictionary toresult.plot_corner()
and extract the order of parameters by replicating the order oftheta.columns
. The resulting list is added to kwargs and passed on toplot_corner_multi()
.I am not entirely sure whether this is the best way of handling the problem since it might be confusing why
truth_color
is handled as a kwarg inresult.plot_corner()
whiletruths
is an explicit argument.We can discuss this within this PR.