Repository navigation
DOC fix DecisionBoundaryDisplay color consistency in plot_sgd_iris example - #33719
Conversation
|
Hi @anvaybarhate-ux, thank you for this PR, but looking at the output, the filled regions are now the same color as the dahed lines of the OVA classifiers, which make them invisible in parts of the plot.
Once #33709 is merged, this example can simply be fixed by adapting the code to use |
Also, please note that this part in your PR description will automatically close the whole issue if it gets merged, even though it only fixes a part of it. Please change it to "Towards #33557" (see 2. in the Pull Request Checklist) |
|
Thanks @AnneBeyer! I have updated the description to 'Towards #33557'. I will wait for #33709 to merge and then update the color fix accordingly. |
AnneBeyer
left a comment
There was a problem hiding this comment.
Hi @anvaybarhate-ux, thank you for your patience! #33709 is now merged and we have a new default for colors. Please add the suggested changes and check the newly generated output. Thank you!
|
Thanks @AnneBeyer! Removed( multiclass_colors ) entirely so the new default color map is used, and updated colors to "byr". All dashed lines are now clearly visible. Please let me know if anything else needs adjusting. |


Towards #33557
Changes
cmap=plt.cm.Pairedwithmulticlass_colors=["b", "r", "y"]in
DecisionBoundaryDisplay.from_estimatorto ensure colour consistencybetween decision boundary regions and scatter points for this 3-class problem.
Visual verification
Decision boundary colours now match scatter point colours: