[Rdkit-discuss] A case of the jaggies

2014-07-21 Thread Paul Emsley


Hi,

Why are the structure images in the RDKit documentation nice and smooth 
but mine have the jaggies?


What do I have to do to my PIL (or something?) for such smoothness?

Thanks,

Paul.

--
Want fast and easy access to all the code in your enterprise? Index and
search up to 200,000 lines of code with a free copy of Black Duck
Code Sight - the same software that powers the world's largest code
search on Ohloh, the Black Duck Open Hub! Try it now.
http://p.sf.net/sfu/bds___
Rdkit-discuss mailing list
Rdkit-discuss@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/rdkit-discuss


Re: [Rdkit-discuss] A case of the jaggies

2014-07-21 Thread Greg Landrum
Hi Paul,



On Mon, Jul 21, 2014 at 3:36 PM, Paul Emsley pems...@mrc-lmb.cam.ac.uk
wrote:



 Why are the structure images in the RDKit documentation nice and smooth
 but mine have the jaggies?


The jagged lines are because the RDKit is using its fall-back mechanism for
generating PNGs. To get the higher quality drawings, you need either the
python cairo bindings (py2cairo) or the python aggdraw bindings installed.
If you can, I'd suggest the cairo bindings; the aggdraw wrapper is no
longer supported by its author.

-greg
--
Want fast and easy access to all the code in your enterprise? Index and
search up to 200,000 lines of code with a free copy of Black Duck
Code Sight - the same software that powers the world's largest code
search on Ohloh, the Black Duck Open Hub! Try it now.
http://p.sf.net/sfu/bds___
Rdkit-discuss mailing list
Rdkit-discuss@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/rdkit-discuss


Re: [Rdkit-discuss] A case of the jaggies

2014-07-21 Thread Paul Emsley
On 21/07/14 17:22, Greg Landrum wrote:
 Hi Paul,



 On Mon, Jul 21, 2014 at 3:36 PM, Paul Emsley 
 pems...@mrc-lmb.cam.ac.uk mailto:pems...@mrc-lmb.cam.ac.uk wrote:



 Why are the structure images in the RDKit documentation nice and
 smooth but mine have the jaggies?


 The jagged lines are because the RDKit is using its fall-back 
 mechanism for generating PNGs. To get the higher quality drawings, you 
 need either the python cairo bindings (py2cairo) or the python aggdraw 
 bindings installed. If you can, I'd suggest the cairo bindings; the 
 aggdraw wrapper is no longer supported by its author.


py2cairo was just the ticket! (my sketcher uses cairo from C++)

Thanks,

Paul.


--
Want fast and easy access to all the code in your enterprise? Index and
search up to 200,000 lines of code with a free copy of Black Duck
Code Sight - the same software that powers the world's largest code
search on Ohloh, the Black Duck Open Hub! Try it now.
http://p.sf.net/sfu/bds
___
Rdkit-discuss mailing list
Rdkit-discuss@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/rdkit-discuss