If hacking the SVG isn't to your taste, you can pass into DrawMolecule a
list of bonds for highlighting, and the colour of highlight for each bond.
This will put a coloured band alongside each bond. Also,
DrawMoleculeWithHighlights allows you to put multiple coloured highlights
for each bond, so
Hi Joey,
not sure if by "color" you mean text labelling or actually mapping a
property to a color.
Anyway, here's some code for either use case.
The text labelling is easy, the individual bond coloring can be done by
fiddling with the SVG text.
import re
import xml.etree.ElementTree as ET
import
Hi all,
I would like to color all bonds with a value. Does anyone have a snippet for
this?
Many thanks!
Joey Storer
Dow Inc.
Core R
General Business
___
Rdkit-discuss mailing list
Rdkit-discuss@lists.sourceforge.net
3 matches
Mail list logo