Skip to content
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

d3graph.set_node_properties error when provided with a list of colors #37

Open
LoePhi opened this issue Dec 5, 2023 · 0 comments
Open

Comments

@LoePhi
Copy link

LoePhi commented Dec 5, 2023

Description

Using d3graph.set_node_properties() with a color-parameter like ['A','A','B',...] results in a ValueError raised by _check_hex_color():
'[color] contains incorrect length of hex-color! Hex must be of length 7: ["#000000", "#000000", etc]'

Expected behaviour

The color-parameter is used together with cmap to generate a list of hex-colors

Sugested fix

Apply _get_hexcolor() to the color parameter if the user passed a list of str.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant