Re: [Rdkit-discuss] MolsToGridImage with varying number of mols per row

2016-02-17 Thread Joos Kiener
Hi Greg, thanks that works great. After trying it out I have another suggestion. With above current implementation the empty cells in the grid will be transparent (alpha=0) and hence depending on how the image is used or saved (png vs jpeg) will not look very nice. Therefore I suggest to either

Re: [Rdkit-discuss] MolsToGridImage with varying number of mols per row

2016-02-16 Thread Greg Landrum
Hi Joos, On Tue, Feb 16, 2016 at 7:34 AM, Joos Kiener wrote: > > I'm trying to draw a grid using Draw.MolsToGridImage. However I have > different number of molecules per row. If I use "None" for columns where no > molecules should be an exception is thrown (c++ signature

[Rdkit-discuss] MolsToGridImage with varying number of mols per row

2016-02-15 Thread Joos Kiener
Hi all, I'm trying to draw a grid using Draw.MolsToGridImage. However I have different number of molecules per row. If I use "None" for columns where no molecules should be an exception is thrown (c++ signature does not match, mol vs NoneType). Is there any easy why to to this? Or do I need to