Here is an example for draw molecules with FG highlighting. Improved version of the code can be found in last part of the post.
RDKit has fdef file for common functional groups. So we can use it for highlighting atoms as same as pharmacohore. Today’s example is just for my memo. Because I often forget many useful options.
MolDraw2DSVG object can draw molecules with DrawMolecules method. So it is easy to draw molecules as high quality SVG image.
Greg suggested me following improved version of the code! Thanks a lot!!