Create utility function for determining light vs. dark text when given a specific palette color. #154
Labels
level: expert
deep knowledge of packages required
priority: medium
can wait until after next release
type: feature
a new visualizer or utility for yb
Milestone
This might go in .util, or .style. Should be callable from any class, so that proper text default choice can be used.
Proposed approach:
This lets the user pass in specific light and dark colors to get back if they don't want white vs. black, but allows them to use it in the text function call directly as it actually returns the color (instead of just returning a boolean or something that must be interpreted).
This should especially be used in the Heatmap classifier visualizers, e.g. ClassificationReport and ConfusionMatrix
The text was updated successfully, but these errors were encountered: