Remove the old pairplot path in v0.29

Open
#2,218 2 comments 0 reactions 0 assignees View on GitHub

Maintainers usually reply within 6 days

Nobody has claimed this yet.

  • #2221 by @BHARATH0153 — closed without merging

Assessment

Difficulty
3/5
Estimated time
1-2 days
Newbie friendliness
42/100
Issue type
Refactor
Clarity
Clearly specified
Activity status
Active
Tech stack
matplotlib, python, pytorch

Research direction

Start with sbi/analysis/plot.py and sbi/analysis/plotting_classes.py, then sbi/analysis/__init__.py, and check which of the listed symbols are still referenced. Work through the checklist, keeping _get_default_opts, _arrange_plots and update, then run tests/plot_test.py after removing test_pairplot_dep and test_deprecated_plotting_warns_once_at_the_caller. Done means the listed symbols and tests are gone and the plotting tests still pass.

Written by the indexing model from the issue text.

Description

Towards #1873. #2160 deprecates the old pairplot path: each item below raises a FutureWarning that names v0.29.0.

Remove in v0.29:

  • the **kwargs parameters of pairplot and marginal_plot, the branches that send them to the old implementation, and _warn_deprecated_kwargs
  • pairplot's offdiag parameter and _prepare_upper, with the tests test_pairplot_warns_on_offdiag_argument and test_pairplot_raises_error_on_offdiag_and_upper_conflict
  • pairplot_dep, marginal_plot_dep, their bodies _pairplot_dep and _marginal_plot_dep, and get_diag_func, which only those bodies use
  • PlotOffDiagOptions and its export in sbi/analysis/__init__.py
  • the "plot" branches in get_offdiag_funcs (sbi/analysis/plot.py) and get_default_offdiag_kwargs (sbi/analysis/plotting_classes.py), and plt_plot_2d
  • the "hist2d", "kde2d" and "contourf" aliases in get_offdiag_funcs. pairplot rejects these style names before they are reached.
  • test_pairplot_dep and test_deprecated_plotting_warns_once_at_the_caller in tests/plot_test.py

Keep _get_default_opts, _arrange_plots and update: conditional_pairplot and conditional_marginal_plot use all three, and plot_summary in sbi/analysis/tensorboard_output.py uses _get_default_opts.

Dominant language
Python
Stars
894
Forks
306
Avg merge
5d 21h
Merged PRs (30d)
61

Getting set up

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.

More from sbi-dev/sbi

All issues in sbi-dev/sbi

Similar issues

More Python issues

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.