I want to create corner plots like these ones:




In python there is a library called corner for this purpose. However, I want to recreate them from scratch with pgfplots / tikz. As input, I have the posterior samples for each variable. Does anyone have an idea how to do this? My search has come up short.


A first attempt but without the actually data (surprise). But i think you get the idea.


    group style={
    group size=3 by 3,
    horizontal sep=5mm,
    vertical sep=5mm,
    xlabels at=edge bottom,
    xticklabels at=edge bottom,
    ylabels at=edge left,
    yticklabels at=edge left,
% 1st row
\nextgroupplot[title={logMs = ...}]
\addplot coordinates {(0,0) (1,2) (2,1)};
\nextgroupplot[group/empty plot]
\nextgroupplot[group/empty plot]
% 2nd row
\addplot coordinates {(0,0) (1,2) (2,1)};
\nextgroupplot[title={logDs = ...}]
\addplot coordinates {(0,0) (1,2) (2,1)};
\nextgroupplot[group/empty plot]
% 3rd row
\nextgroupplot[xlabel={logMs}, ylabel={a}]
\addplot coordinates {(0,0) (1,2) (2,1)};
\addplot coordinates {(0,0) (1,2) (2,1)};
\nextgroupplot[title={a = ...},xlabel={a}]
\addplot coordinates {(0,0) (1,2) (2,1)};

enter image description here

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.