Skip to content

Default plot_2d including run statistics #332

@yallup

Description

@yallup

Describe the bug
Calling plot_2d without chosing which params to plot generically seems to error as it includes logL, nlive and logLbirth, which typically don't play nicely with 2d KDEs

To Reproduce
Using twin_gaussian example from PCLite repo chains (using anesthetic 2.3.0 installed via pip)

import anesthetic as ns
from matplotlib import pyplot as plt
samples=ns.read_chains("chains/twin_gaussian")

#fine because you force it to be scatters
samples.plot_2d(kinds=dict(upper="scatter_2d",lower='scatter_2d'))
#errors due to triangulation errors
samples.plot_2d()

twin_gaussian

Expected behavior
Default behavior should be all params but not nlive, logl and logl_birth.

Additional context
Might be related to the previous change wrt integer axis names

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions