Skip to content

plot: fix limits handling, unknown kwargs and a old docstring reference #1978

Description

@janfb

Follow-up to #1425, which PR #1631 largely delivered. These are the concrete items that survive, each small and independent:

  1. prepare_for_plot compares limits == [], which is wrong for a np.ndarray. Use a length check, and align the pairplot / marginal_plot type hints. Needs a regression test.
  2. Warn or raise on unrecognised keys in diag_kwargs, upper_kwargs and lower_kwargs. A typo is currently silent.
  3. sbi/analysis/plot.py:1336 points readers at _get_default_fig_kwargs(), and the deprecation message at plot.py:2862 tells them to use it. That function does not exist. Only _get_default_opts is defined, at plot.py:2860.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't workingdiagnosticsSBC, TARP, L-C2ST, coverage, sensitivity analysis, and plots

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions