-
Notifications
You must be signed in to change notification settings - Fork 2k
fix clustermap test: colors parameter #2562
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
I can't reproduce a failure on my system, nor has the automated CI failed on this. I think the change is correct, but I'm curious to understand what's happening here. |
Codecov Report
@@ Coverage Diff @@
## master #2562 +/- ##
=======================================
Coverage 97.45% 97.45%
=======================================
Files 17 17
Lines 6326 6326
=======================================
Hits 6165 6165
Misses 161 161 Continue to review full report at Codecov.
|
I am not sure either. Here is a full buildlog: The patch fixes the failure. Maybe your system and the CI have a different default of colors than the openSUSE build system, which happens to be the desired color? Is there some preset which has the same value and it is not imported by the openSUSE build system? What happens if you set |
When I try it locally, also with mpl 3.4.1, the dendrogram is a greenish color as expected when setting this kwarg and gray otherwise. Very strange. |
On my system:
|
Ok I traced it down a little: matplotlib
IPython pdb debug:
seaborn 0.11.1The additional kw is added here: Line 685 in 96a5350
On my system this first sets the Maybe the order on your system is reversed. Or did you check with current master, which has a different masterLine 693 in 5ce48af
|
Duh! #2490 |
Cool ... so do I understand correctly that this has already been "fixed"? |
You tell me, it's your PR! At least it shows that you already acknowledged the problem months ago. I made the mistake to not explicitly state, that my problem is with the released version, not the current development branch. A minor problem I still see: If for whatever stupid reason both Regardless, IMHO |
Tough to remember what code I wrote last week is supposed to do, much less two months ago :) That said, now that you've helpfully dug this up, I do remember it as something that popped up when I was testing the matplotlib 3.4 release candidate.
This seems like a matplotlib implementation detail and something seaborn should probably avoid intervening on.
The goal of the test is to check that |
the
tree_kws
parameter for clustermap is forwarded to matplotlib.collections.LineCollection. But that constructor does not have acolor
kwarg. The unit test fails on openSUSE Tumbleweed with MPL 3.4.1: