Skip to content

DOC fix/refactor examples using DecisionBoundaryDisplay #33557

Closed

Description

@AnneBeyer

Warning

This issue is not open for contribution. Please do not open PRs for this.

Describe the issue linked to the documentation

This is a meta issue to track all examples using the DecisionBoundaryDisplay to check them for consistency.
(noticed when building the docs with all examples in #33471)

  • When introducing multiclass_colors, using cmap and colors was replaced for multiclass problems, but not all examples were adapted accordingly, which leads to color inconsistencies in some plots.
  • Double-check that all use from_estimator instead of plot

Note

All examples need to be checked visually in the example gallery, but a PR is only required for those that need to be adapted.

For reference, here is a list of all examples currently using DecisionBoundaryDisplay:
(extracted with grep -Rl "DecisionBoundaryDisplay" examples | sort | sed 's/^/- [ ] /' and now pointing to the corresponding example in the dev version of the example gallery thanks to an edit from Codex.

Follow-ups:

Suggest a potential alternative/fix

I will check this and open PRs where changes are necessary.

Activity

  1. Abineshabee commented on Mar 21, 2026

    @Abineshabee

    Hi @AnneBeyer! I'd like to work on the neighbors/ examples:

    • examples/neighbors/plot_classification.py
    • examples/neighbors/plot_nca_classification.py
    • examples/neighbors/plot_nearest_centroid.py

    I'll check for multiclass_colors consistency and from_estimator usage. Are these still available?

  2. AnneBeyer commented on Mar 23, 2026

    @AnneBeyer
    MemberAuthor

    Hi @Abineshabee, sure, go ahead!

  3. moved this from Todo to In progress in Labson Mar 23, 2026
  4. Abineshabee commented on Mar 23, 2026

    @Abineshabee

    Thank you @AnneBeyer! I'll get started on it right away.

  5. Bilwak1 commented on Mar 24, 2026

    @Bilwak1

    "Hi @AnneBeyer! I'd like to work on the svm/ examples: plot_iris_svc.py, plot_svm_kernels.py, plot_separating_hyperplane.py, plot_separating_hyperplane_unbalanced.py, and plot_weighted_samples.py. I'll check for multiclass_colors consistency and from_estimator usage. Are these still available?"

  6. removed
    Needs Triage
    on Mar 25, 2026
  7. yejiming commented on Mar 28, 2026

    @yejiming

    Hi @AnneBeyer, I'd like to work on examples/preprocessing/plot_scaling_importance.py

  8. Meenakshi-1802 commented on Mar 29, 2026

    @Meenakshi-1802

    Hi @AnneBeyer! I'd like to work on the following examples:

    • examples/svm/plot_iris_svc.py
    • examples/svm/plot_oneclass.py
    • examples/tree/plot_iris_dtc.py

    I'll check for multiclass_colors consistency and from_estimator usage. Are these still available?

  9. added this to the 1.9 milestone on Mar 30, 2026
  10. TobyB1702 commented on Apr 3, 2026

    @TobyB1702

    Hey @AnneBeyer i'd like to work on examples/svm/plot_linearsvc_support_vectors.py if its still available!

  11. anvaybarhate-ux commented on Apr 9, 2026

    @anvaybarhate-ux
    Contributor

    Hi @AnneBeyer! I'd like to work on examples/linear_model/plot_sgd_iris.py. Is this still available?

  12. amit-sharma-ds commented on Apr 9, 2026

    @amit-sharma-ds

    Hello ma'am! Can, I work on this issue.

  13. AnneBeyer commented on Apr 10, 2026

    @AnneBeyer
    MemberAuthor

    Hi everyone, thank you for your interest, but this issue is currently not open for contribution, as the discussion about default colors in #33115 has not yet concluded. Please do not open any more PRs.

  14. AnneBeyer commented on May 11, 2026

    @AnneBeyer
    MemberAuthor

    All examples now show consistent colours.

    I moved the refactoring of existing examples that don't use DecisionBoundaryDisplay yet (but should) into a separate issue, so this one can be closed now.

  15. moved this from In progress to Done in Labson May 11, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions