pythonemcee

Hide sample points in corner plot using corner.corner


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.


Solution

  • 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.