On 11/02/2018 07:59 AM, Eric Jonas wrote: > Hello! I'm trying to figure out if there's any known or sane way to > automatically plot numerical values adjacent to atoms using the rdkit > drawing machinery. Ideally I'd like to annotate certain atoms > programmatically with values.
This draws atom labels:
op = dr.drawOptions()
for i in range( self._mol.GetNumAtoms() ) :
op.atomLabels[i] = self._mol.GetAtomWithIdx( i ).GetSymbol() +
str( (i + 1) )
HTH,
--
Dimitri Maziuk
Programmer/sysadmin
BioMagResBank, UW-Madison -- http://www.bmrb.wisc.edu
signature.asc
Description: OpenPGP digital signature
_______________________________________________ Rdkit-discuss mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/rdkit-discuss

