[Rdkit-discuss] draw molecule question(append two questions)

2021-12-23 Thread hwang929
Hi, question one : After the previous questions, I can highlight the two-dimensional molecules into the following picture 1(rdkit version must be 2021.09.2). Now I want to change the atoms into the corresponding color, such as Figure 2, but I find that this thing seems to be only available on

[Rdkit-discuss] draw molecule question

2021-12-23 Thread hwang929
Hi, After the previous questions, I can highlight the two-dimensional molecules into the following picture 1(rdkit version must be 2021.09.2). Now I want to change the atoms into the corresponding color, such as Figure 2, but I find that this thing seems to be only available on 2021.09 2,

Re: [Rdkit-discuss] draw molecule question

2021-10-28 Thread Paolo Tosco
Dear Hao, I don't think that's possible through the current rdMolDraw2D API. However, you may obtain that effect fiddling a bit with the SVG XML text: import re import xml.etree.ElementTree as ET from rdkit import Chem from rdkit.Chem.Draw import rdMolDraw2D from IPython.display import SVG mol

[Rdkit-discuss] draw molecule question

2021-10-28 Thread hwang929
Hi, I would like to ask if I can show molecules like 1 in the figure below in addition to the conventional highlighting method like figure 2 when using rdkit to draw molecules? Thanks Kind regards, Hao Wang figure 1