[Rdkit-discuss] How to add a caption/legend to a 2D SVG depiction of a molecule?

2020-06-21 Thread Francois Berenger
Dear RDKiters, My current code looks like this: --- AllChem.Compute2DCoords(mol) # generate 2D conformer mol.SetProp("_Name", name) d = rdMolDraw2D.MolDraw2DSVG(200, 200) d.DrawMolecule(mol) d.FinishDrawing() out_fn = '%d.svg' % i with

[Rdkit-discuss] Drawing R-groups and custom labels with subscripts

2020-06-21 Thread Ivan Khokhlov
Hello RDKit community! Is there a way to draw subscript indices in molecules with R-groups or with custom labels? In other words, to draw "1" in -R1, or "2" in -CH2COOH as subscript, not as regular full-size symbol. A couple of example is attached. Hope attachement works in mailing lists.