phurwicz / hover

:speedboat: Label data at scale. Fun and precision included.
https://phurwicz.github.io/hover
MIT License
323 stars 19 forks source link

Setting custom colors #45

Closed robinsonkwame closed 1 year ago

robinsonkwame commented 2 years ago

The default gray for ABSTAIN labels is difficult to see on my screen. I wondered if there was an easy way to set custom color per label.

haochuanwei commented 2 years ago

On the recipe​ (i.e. simple_annotator​) level there currently isn’t. For ABSTAIN the light gray color is kind of the point — ABSTAIN is the unlabeled background upon which labeled colors are applied.

If you’d like a custom color palette, the best place to do it is probably a Recipe​ class. Let me give more thought to this.

Best regards, Haochuan


From: Kwame Porter Robinson @.> Sent: Sunday, August 21, 2022 1:22:59 AM To: phurwicz/hover @.> Cc: Subscribed @.***> Subject: [phurwicz/hover] Setting custom colors (Issue #45)

The default gray for ABSTAIN labels is difficult to see on my screen. I wondered if there was an easy way to set custom color per label.

— Reply to this email directly, view it on GitHubhttps://github.com/phurwicz/hover/issues/45, or unsubscribehttps://github.com/notifications/unsubscribe-auth/AEZTDWVQTRIASFS544AWHNDV2EH7HANCNFSM57DQYN6A. You are receiving this because you are subscribed to this thread.Message ID: @.***>

robinsonkwame commented 2 years ago

Great, looking forward to it. I actually thought the Bokeh icon was a color wheel and clicked it to modify the current label color.

As an aside, maybe a roadmap needs-help-issue, UI accessibility will be greatly enhanced if users are able to control color settings and defaults. For example, Bokeh put accessibility related concerns on their roadmap, https://github.com/bokeh/bokeh/issues/12259, and other products let you specify color settings, such as the commercial prodi.gy that has a crude bulk labeling script. Libraries like colorcet provide ready made perceptually accurate pallets for dense data visualizations (colorcet.holoviz.org) too.

(EDIT - removed unrelated reply email content)

phurwicz commented 1 year ago

Hi @robinsonkwame, custom colors are now supported 🎉

# enter the hex code that works best for you
hover.config['visual']['abstain_hexcolor'] = "#dcdcdc"

for more information, you can

hover.config.hint()
github-actions[bot] commented 1 year ago

This issue is stale because it has been open for 30 days with no activity.

github-actions[bot] commented 1 year ago

This issue was closed because it has been inactive for 14 days since being marked as stale.