Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Hide sample points in corner plot using corner.corner

Tags:

python

emcee

In the context of Markov Chain Monte Carlo, I want to plot the 2D posterior distribution for a parameter estimation problem using corner.corner. The figure that I have now looks like this:

example posterior pdf

In the contour plot, the contours are defined by probability quantiles, such that what is outside the contours has low probability.

I would like to know if it is possible to remove the samples in the background (i.e. the grey dots) outside of the probability contours.

like image 797
Bremsstrahlung Avatar asked Oct 17 '25 14:10

Bremsstrahlung


1 Answers

To remove the datapoints outside from contour, you have to plot_datapoints=False in corner.corner command.

I hope it will simply solve your issue.

like image 111
The Cosmological Cafe Avatar answered Oct 20 '25 05:10

The Cosmological Cafe



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!