Re: [Rdkit-discuss] Multi-line atom label

2022-05-15 Thread David Cosgrove
Hi, At present, the drawing code will ignore things like '\n'. I suppose it could be made to recognise newline and produce 2 lines of output. I will add it to the list of things to do on a wet weekend, though it won't appear in a release until 2022.09.1 at the earliest. In the meantime, you

[Rdkit-discuss] Multi-line atom label

2022-05-13 Thread Márton Vass
Hi, Is it possible to have a multi-line atom label? I've tried adding ...\n... or .. to the atomNote property, but these didn't work (though and work). mol = Chem.MolFromSmiles("CCC") mol.GetAtomWithIdx(0).SetProp('atomNote',"line1\nline2")