pygtc icon indicating copy to clipboard operation
pygtc copied to clipboard

Plot joint distribution?

Open ebachelet opened this issue 1 year ago • 3 comments

Hello

Thanks for the nice package. This is not an issue, but a request. Is there, or would it be possible to add, an option to plot the joint distribution? For example, plot in a different color the joint distribution of Planck and WMAP?

Thanks

ebachelet avatar Mar 06 '23 20:03 ebachelet

Thanks for the feedback!

To make sure I understand: so you have two chains (e.g., Planck and WMAP), and you want to plot both of them (which is already possible) but you also want to plot the joint constraint? In general, one could try and do this via importance sampling, but if the two distributions do not have much overlap this won't work well. So typically, it might be better to explicitly run the joint analysis. Is that an option?

SebastianBocquet avatar Mar 07 '23 09:03 SebastianBocquet

Yes. So you recommend to generate manually the joint sampling and adding it as a third component? I will give it a try.

ebachelet avatar Mar 07 '23 15:03 ebachelet

Sounds good. Please don't hesitate to reach out with more questions!

SebastianBocquet avatar Mar 09 '23 08:03 SebastianBocquet