rasbt / mlxtend

A library of extension and helper modules for Python's data analysis and machine learning libraries.
https://rasbt.github.io/mlxtend/
Other
4.82k stars 853 forks source link

add heatmap font color threshold parameter #1022

Closed rasbt closed 1 year ago

rasbt commented 1 year ago

Adds a new parameter to the heatmap function:

text_color_threshold : float (default: None)
    Threshold for the black/white text threshold of the text
    annotation. Default (None) tried to infer a good threshold
    automatically using `np.max(normed_matrix) / 2`.
review-notebook-app[bot] commented 1 year ago

Check out this pull request on  ReviewNB

See visual diffs & provide feedback on Jupyter Notebooks.


Powered by ReviewNB

codecov[bot] commented 1 year ago

Codecov Report

Patch coverage has no change and project coverage change: -0.03 :warning:

Comparison is base (77d0696) 77.30% compared to head (e2f7bc1) 77.28%.

:exclamation: Current head e2f7bc1 differs from pull request most recent head 67b9615. Consider uploading reports for the commit 67b9615 to get more accurate results

Additional details and impacted files ```diff @@ Coverage Diff @@ ## master #1022 +/- ## ========================================== - Coverage 77.30% 77.28% -0.03% ========================================== Files 200 200 Lines 11311 11314 +3 Branches 1486 1487 +1 ========================================== Hits 8744 8744 - Misses 2348 2351 +3 Partials 219 219 ``` | [Impacted Files](https://codecov.io/gh/rasbt/mlxtend/pull/1022?src=pr&el=tree&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=Sebastian+Raschka) | Coverage Δ | | |---|---|---| | [mlxtend/plotting/heatmap.py](https://codecov.io/gh/rasbt/mlxtend/pull/1022?src=pr&el=tree&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=Sebastian+Raschka#diff-bWx4dGVuZC9wbG90dGluZy9oZWF0bWFwLnB5) | `0.00% <0.00%> (ø)` | | Help us with your feedback. Take ten seconds to tell us [how you rate us](https://about.codecov.io/nps?utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=Sebastian+Raschka). Have a feature suggestion? [Share it here.](https://app.codecov.io/gh/feedback/?utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=Sebastian+Raschka)

:umbrella: View full report in Codecov by Sentry.
:loudspeaker: Do you have feedback about the report comment? Let us know in this issue.