Discussion:
[Rdkit-discuss] Need help with B&W SVG
Andreas Schulz
2017-07-25 10:15:20 UTC
Permalink
------------------------------------------------------------------------------
Check out the vibrant tech community on one of the world's most
engaging tech sites, Slashdot.org! http://sdm.link/slashdot
Andreas Schulz
2017-07-25 12:27:53 UTC
Permalink
Hi ,
there was a disscussion about how to draw molecules in black and white in 2015....
Today I search for a solution to create black & white SVG with something like

drawer.DrawMolecule(mol, options=???)

Are there any hints where I could find an example, please?

Thanks
Andreas

PS: Sorry, first mail today was html ....
Greg Landrum
2017-07-25 16:04:30 UTC
Permalink
Hi Andreas,

That's a really good question, but I'm afraid that there's not good answer
for it: the new drawing code does not currently have an option to support
either black and white rendering or using custom colors for the elements.

I just created the github item for B&W rendering here:
https://github.com/rdkit/rdkit/issues/1510

It should be an easy one to get into the next release.

In the meantime, someone who is better with regular expressions than me can
probably suggest a pattern to replace the specified drawing colors in the
SVG with #000000 without changing the background color to black as well.
That's a hack, but possibly better than nothing.

-greg
Post by Andreas Schulz
Hi ,
there was a disscussion about how to draw molecules in black and white in 2015....
Today I search for a solution to create black & white SVG with something like
drawer.DrawMolecule(mol, options=???)
Are there any hints where I could find an example, please?
Thanks
Andreas
PS: Sorry, first mail today was html ....
------------------------------------------------------------
------------------
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
https://lists.sourceforge.net/lists/listinfo/rdkit-discuss
Loading...