-
Notifications
You must be signed in to change notification settings - Fork 77
Node colours in draw_svg() #2330
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
Comments
I think we consciously dropped this in favour of the more powerful CSS based approach @gtsambos, like in tshi example It's not as easy to use, but it's infinitely more flexible. Is this a fair summary @hyanwong? |
Related: #579 |
Yes, that's right. It seemed better not to set specific attributes like colour by a proliferation of parameters, when you can easily CSS it. There's code showing how to do it as the first example here: https://tskit.dev/tutorials/viz.html#styling Suggestions on how to make this easier are most welcome. Perhaps the example there is too complicated? All you really need is
|
Or if you are want to use matplotlib colours, for example:
|
Closing this as CSS is the preferred route. Re-open if anyone feels strongly! |
It would be nice to have the facility to colour the nodes in
draw_svg()
, like you still can withdraw()
. I'm happy to be assigned to this, but can't tackle it immediately.The text was updated successfully, but these errors were encountered: