Repository navigation
Closed
Labels
Milestone
Description
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, usingcmapandcolorswas 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_estimatorinstead ofplot
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.
- examples/applications/plot_outlier_detection_wine.py
- examples/classification/plot_classification_probability.py - DOC Fix typo and add interactive mode to imports in example #33612, DOC Update classification probability example to use default colors #33808
- examples/classification/plot_classifier_comparison.py
- examples/classification/plot_lda_qda.py
- examples/cluster/plot_inductive_clustering.py
- examples/ensemble/plot_adaboost_twoclass.py
- examples/ensemble/plot_isolation_forest.py
- examples/ensemble/plot_voting_decision_regions.py
- examples/linear_model/plot_logistic_multinomial.py - DOC fix colors and typos in example on Multinomial and One-vs-Rest Decision Boundaries #33622
- examples/linear_model/plot_sgd_iris.py - DOC fix DecisionBoundaryDisplay color consistency in plot_sgd_iris example #33719
- examples/linear_model/plot_sgdocsvm_vs_ocsvm.py
- examples/model_selection/plot_likelihood_ratios.py
- examples/neighbors/plot_classification.py - DOC Use DecisionBoundaryDisplay colors for scatter in Nearest Neighbors Classification example #33849
- examples/neighbors/plot_nca_classification.py - DOC Fix colors in Neighborhood Components Analysis example #33869
- examples/neighbors/plot_nearest_centroid.py - DOC Update Nearest Centroid DecisionBoundaryDisplay example #33883
- examples/preprocessing/plot_scaling_importance.py - DOC fix DecisionBoundaryDisplay color consistency in plot_scaling_importance example #33654, DOC Update colors in Scaling Importance example #33888
- examples/semi_supervised/plot_semi_supervised_versus_svm_iris.py - DOC Fix colors in semi-supervised vs. SVM example #33817
- examples/svm/plot_custom_kernel.py - DOC fix colors and add support vectors in SVM with custom kernel example #33891
- examples/svm/plot_iris_svc.py - DOC fix colors and add support vectors in SVC with iris dataset example #33892
- examples/svm/plot_linearsvc_support_vectors.py
- examples/svm/plot_oneclass.py
- examples/svm/plot_separating_hyperplane.py
- examples/svm/plot_separating_hyperplane_unbalanced.py
- examples/svm/plot_svm_kernels.py
- examples/svm/plot_weighted_samples.py
- examples/tree/plot_iris_dtc.py - DOC Fix colors in decision tree example #33909
Follow-ups:
- repeat/update when new features (like Fix and refactor color handling in
DecisionBoundaryDisplay#33115, ENH addxlim/ylimparameters to DecisionBoundaryDisplay #33211, Addshow_data=Falseoption toDecisionBoundaryDisplay.from_estimator#33094) are added - check if other examples should be using
DecisionBoundaryDisplay- tracked in DOC refactor examples to useDecisionBoundaryDisplay#33980 - check this for other
Displayclasses
Suggest a potential alternative/fix
I will check this and open PRs where changes are necessary.
Metadata
Metadata
Assignees
Labels
Type
Projects
- StatusShow more project fieldsDone
Activity
Abineshabee commentedon Mar 21, 2026
Hi @AnneBeyer! I'd like to work on the
neighbors/examples:I'll check for
multiclass_colorsconsistency andfrom_estimatorusage. Are these still available?AnneBeyer commentedon Mar 23, 2026
Hi @Abineshabee, sure, go ahead!
Abineshabee commentedon Mar 23, 2026
Thank you @AnneBeyer! I'll get started on it right away.
Bilwak1 commentedon Mar 24, 2026
"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?"
yejiming commentedon Mar 28, 2026
Hi @AnneBeyer, I'd like to work on examples/preprocessing/plot_scaling_importance.py
Meenakshi-1802 commentedon Mar 29, 2026
Hi @AnneBeyer! I'd like to work on the following examples:
examples/svm/plot_iris_svc.pyexamples/svm/plot_oneclass.pyexamples/tree/plot_iris_dtc.pyI'll check for
multiclass_colorsconsistency andfrom_estimatorusage. Are these still available?TobyB1702 commentedon Apr 3, 2026
Hey @AnneBeyer i'd like to work on examples/svm/plot_linearsvc_support_vectors.py if its still available!
anvaybarhate-ux commentedon Apr 9, 2026
Hi @AnneBeyer! I'd like to work on examples/linear_model/plot_sgd_iris.py. Is this still available?
amit-sharma-ds commentedon Apr 9, 2026
Hello ma'am! Can, I work on this issue.
AnneBeyer commentedon Apr 10, 2026
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.
AnneBeyer commentedon May 11, 2026
All examples now show consistent colours.
I moved the refactoring of existing examples that don't use
DecisionBoundaryDisplayyet (but should) into a separate issue, so this one can be closed now.