Re: [Rdkit-discuss] Change font size in atom.SetProp("atomNote")

2022-03-28 Thread Gianmarco Ghiandoni
Great. Thanks. I will test this out straight away. Giammy On Mon, 28 Mar 2022 at 16:11, Paolo Tosco wrote: > Hi Gianmarco, > > sure, e.g.: > > d2d = rdMolDraw2D.MolDraw2DSVG(200, 200) > d2d.drawOptions().annotationFontScale = 0.7 > d2d.drawOptions().addAtomIndices = True >

Re: [Rdkit-discuss] Change font size in atom.SetProp("atomNote")

2022-03-28 Thread Paolo Tosco
Hi Gianmarco, sure, e.g.: d2d = rdMolDraw2D.MolDraw2DSVG(200, 200) d2d.drawOptions().annotationFontScale = 0.7 d2d.drawOptions().addAtomIndices = True d2d.DrawMolecule(Chem.MolFromSmiles("c1n1")) d2d.FinishDrawing() SVG(d2d.GetDrawingText()) [image: image.png] Cheers, p. On Mon, Mar 28,

Re: [Rdkit-discuss] Change font size in atom.SetProp("atomNote")

2022-03-28 Thread Gianmarco Ghiandoni
Hello Paolo, Thanks for that. Is it possible to configure that parameter against the rdMolDraw2D? I am using it to get the SVG string for my molecule: d2d = rdMolDraw2D.MolDraw2DSVG(fig_size[0], fig_size[1]) d2d.DrawMolecule( rwmol, highlightAtoms=atoms_to_highlight,

[Rdkit-discuss] Change font size in atom.SetProp("atomNote")

2022-03-28 Thread Gianmarco Ghiandoni
Hi all, I am using RDKit to set calculated values to atoms as shown below and I would like to know whether it is possible or not to change the font size to make it slightly bigger. # For each atom, set the property "atomNote" to a index+1 of the atom atom.SetProp("atomNote",