Hi Dimitri and others:
I am happy to report that it works now as expected.
I needed to delete my old files and rerun the script.
With that the background is transparent.
My oversight.
Happy Thanksgiving!
Markus


On Mon, Nov 20, 2017 at 3:12 PM, Dimitri Maziuk <dmaz...@bmrb.wisc.edu>
wrote:

> On 11/20/2017 05:01 PM, Markus Metz wrote:
> > Here is a code snippet:
> ...
>
> Hmm. Now that I look at it, what I have running is
>
> def _to_rdk_svg( self, mol ) :
>     assert isinstance( mol, rdkit.Chem.rdchem.Mol )
>     dr = rdkit.Chem.Draw.rdMolDraw2D.MolDraw2DSVG( 1000, 1000 )
>     dr.SetFontSize( 0.27 )
>     op = dr.drawOptions()
>     for i in range( mol.GetNumAtoms() ) :
>         op.atomLabels[i]=mol.GetAtomWithIdx(i).GetSymbol()+str((i+1))
>     rdkit.Chem.AllChem.Compute2DCoords( mol )
>     dr.DrawMolecule( mol )
>     dr.FinishDrawing()
>     return dr.GetDrawingText()
>
> Sorry, it looks like the code from that thread, if I ever had it
> working, is gone and forgotten. Hopefully Greg will chime in.
>
> --
> Dimitri Maziuk
> Programmer/sysadmin
> BioMagResBank, UW-Madison -- http://www.bmrb.wisc.edu
>
>
------------------------------------------------------------------------------
Check out the vibrant tech community on one of the world's most
engaging tech sites, Slashdot.org! http://sdm.link/slashdot
_______________________________________________
Rdkit-discuss mailing list
Rdkit-discuss@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/rdkit-discuss

Reply via email to