ENH use colors from style in tree plotting#17187
Merged
jnothman merged 3 commits intoscikit-learn:masterfrom May 21, 2020
Merged
ENH use colors from style in tree plotting#17187jnothman merged 3 commits intoscikit-learn:masterfrom
jnothman merged 3 commits intoscikit-learn:masterfrom
Conversation
c8826fc to
94452f3
Compare
Member
Author
|
I also did for style in plt.style.available:
with plt.style.context(style):
plt.figure()
tree.plot_tree(clf)and all of them look reasonable. I didn't test all the seaborn styles but I think they should be fine. No idea if this should be tested. |
Contributor
For what it matters, this looks good to me. Thanks! :) |
thomasjpfan
approved these changes
May 16, 2020
Member
thomasjpfan
left a comment
There was a problem hiding this comment.
I think this is a big enough fix to be added to the 0.24 whats new.
LGTM
jnothman
approved these changes
May 21, 2020
Member
|
Nice |
viclafargue
pushed a commit
to viclafargue/scikit-learn
that referenced
this pull request
Jun 26, 2020
jayzed82
pushed a commit
to jayzed82/scikit-learn
that referenced
this pull request
Oct 22, 2020
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
fixes #16943 and some more of #13971.
This doesn't change the edge color for the bounding boxes, but it adjusts the background color of the boxes and the arrow colors.
as before:

with

plt.style.use('dark_background'):before:
this pr:

with

sns.set_style('whitegrid'):before:
this pr:

with

sns.set_style('dark'):before:
this pr:
