dfm / dfm/corner.py

Two corner plots with partly different parameters on top of each other

Open
#109 0 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Dominant language
Python
Stars
576
Forks
234
PR merge metrics
No merged PRs in 30d

Description

I have two models of which one has one additional parameter.

I'd like to plot these two models on top of each other in one corner plot. Only for the shared parameters this is no problem with the "fig=fig" option. However, if I want to include the one additional parameter, it complains that the number of axes in the first corner plot doesn't match the dimensions of the data for the second corner plot.

I tried to match the dimensions by appending a nan column. However, it then complains about having "Too few points to create valid contours".

Any ideas?

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start by reproducing the two-model case described in the issue and trace how the "fig=fig" option validates axis and data dimensions. Investigate the handling of an additional parameter and the contour calculation after appending a NaN column. Done means models with partly shared parameters can appear in one corner plot without dimension or contour errors.

Written by the indexing model from the issue text.

Assessment

Tech stack
python
Domain
data-visualization
Issue type
Feature
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.