Re: [Rdkit-discuss] highlightColor in Draw.MolsToGridImage()
Open-Source Cheminformatics and Machine Learning
Brought to you by:
glandrum
|
From: Greg L. <gre...@gm...> - 2016-07-17 10:29:44
|
On Sat, Jul 16, 2016 at 9:37 PM, DmitriR <xz...@gm...> wrote: > > Also a couple of related questions (that might have an analogous answer): > > (1) is there a way to change the resolution of the PNG images produced by > Draw.MolToImage(mol)? > The resulting images look low-res and pretty jagged on my screen. > I can change the size, but I couldn't find anything in the API for the > resolution. > The jagged images are typically because you don't have either aggdraw or cairo installed. When this is the case, the RDKit uses a lowest-common-denominator approach to drawing that is better than nothing, but still looks pretty crappy. > (2) For the SVG rendering, is there perhaps a way to change the with > (weight) of the stroke? > For smaller images, the default bond width looks somewhat heavy. > At the moment, there's no way at all to control the line width from Python. I'll take a look at that. -greg |