-
Notifications
You must be signed in to change notification settings - Fork 19
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
ENH: Refactor mosaic plot custom colormap creation #151
base: main
Are you sure you want to change the base?
Conversation
a867eaa
to
3412411
Compare
Codecov ReportAttention: Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## main #151 +/- ##
==========================================
+ Coverage 65.25% 65.47% +0.21%
==========================================
Files 25 25
Lines 2674 2679 +5
Branches 420 420
==========================================
+ Hits 1745 1754 +9
+ Misses 814 813 -1
+ Partials 115 112 -3
Flags with carried forward coverage won't be shown. Click here to find out more. ☔ View full report in Codecov by Sentry. |
Do you have a demonstration of equivalence? I believe this functionality is only used in nirodents, which doesn't yet use nireports, so there's a possibility of introducing bugs or unintended changes that won't be noticed for some time. |
OK, looks like I was too fast willing to address this. The The function
The function
|
3412411
to
ad447bc
Compare
Refactor the mosaic plot custom colormap creation to a separate method. Create a `matplotlib` `ListedColormap` instance given a colormap name and a maximum alpha value. Avoids accessing the colormaps instance's private `_init()` method and `_lut` attribute.
ad447bc
to
eeaef58
Compare
Refactor the mosaic plot custom colormap creation to a separate method. Create a
matplotlib
ListedColormap
instance given a colormap name and a maximum alpha value. Avoids accessing the colormaps instance's private_init()
method and_lut
attribute.