Cornerplot takes a nSamples-by-nDimensions array, and makes density plots of every combination of the dimensions.
This is especially useful when using MCMC; you can see how the parameters in your model interact, and whether there are any tradeoffs between them.
Inspired by triangle.py (https://github.com/dfm/triangle.py) by Dan Foreman-Mackey (http://dan.iel.fm/).
Will Adler (2021). Cornerplot (https://github.com/wtadler/cornerplot), GitHub. Retrieved .
This is an excellent function.
How can I change it so that instead of contour / density plots I get scatter plots?
Can you give a attached example to this code? I am a new one, if you can, please send to my email email@example.com.
Really nice, thank you.
Nice catch, Ben. Fixed it. Thanks!
I found a small bug: The diagonal histograms do not respect user-specified bounds.
I fixed it with the following insertion at line 100:
data2hist = data(:,i);
data2hist(data2hist < bounds(1,i) | data2hist > bounds(2,i)) = NaN;
[n,x] = hist(data2hist, hist_bins);
Find the treasures in MATLAB Central and discover how the community can help you!Start Hunting!