hover icon indicating copy to clipboard operation
hover copied to clipboard

Setting custom colors

Open robinsonkwame opened this issue 3 years ago • 2 comments

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.

robinsonkwame avatar Aug 20 '22 17:08 robinsonkwame

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: @.***>

haochuanwei avatar Aug 21 '22 01:08 haochuanwei

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)

robinsonkwame avatar Aug 21 '22 13:08 robinsonkwame

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()

phurwicz avatar Mar 03 '23 16:03 phurwicz

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

github-actions[bot] avatar Apr 03 '23 12:04 github-actions[bot]

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

github-actions[bot] avatar Apr 18 '23 12:04 github-actions[bot]