Hi Imran, I don’t think that’s possible at the moment. In principle you could derive a class from the base MolDraw2D class and add the matplotlib drawing commands for drawing lines etc. It wouldn’t be a trivial piece of work, however.
Regards, Dave On Tue, 22 Sep 2020 at 16:27, Imran Shah <imran.a.s...@gmail.com> wrote: > > Hi Folks, > > Does anyone know of an rdkit draw function to render a chemical on a > matplotlib axis in a box (x,y, width, height)? I'm interested in creating a > vector image (i.e. publication quality) that has multiple chemicals (shown > below). I created this raster image using matplotlib and MolToImage with > imshow:- > > [image: image] > <https://user-images.githubusercontent.com/10340891/93813456-24382100-fc21-11ea-82a9-fefd04c14078.png> > > I have tried out the option of writing the mol to svg, reading the svg and > then rendering that using matplot but the result isn't ideal. Thanks in > advance. > > Cheers, > > Imran > > -- > Imran Shah > imran.a.s...@gmail.com > > > > _______________________________________________ > > Rdkit-discuss mailing list > > Rdkit-discuss@lists.sourceforge.net > > https://lists.sourceforge.net/lists/listinfo/rdkit-discuss > > -- David Cosgrove Freelance computational chemistry and chemoinformatics developer http://cozchemix.co.uk
_______________________________________________ Rdkit-discuss mailing list Rdkit-discuss@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/rdkit-discuss