Hi,

  is it possible that you use cairo (canvas) and not agg (canvas) ?
  Maybe I made an error with the "cairo colours".

  In case you use cairo apply the following patch and test again (I'm not able
  to test it right now). 
  
--- rdkit/Chem/Draw/cairoCanvas.py      (Revision 1467)
+++ rdkit/Chem/Draw/cairoCanvas.py      (Arbeitskopie)
@@ -100,7 +100,7 @@
 
 
 def convertColor(color):    
-  color = (int(color[0]*255),int(color[1]*255),int(color[2]*255))
+  color = (color[0],color[1],color[2])     #whole function overfluous 
   return color
 
 def _getLinePoints(p1,p2,dash):

regards
   Uwe

Am Donnerstag, den 29.07.2010, 11:09 +0200 schrieb Peter Schmidtke:
> Ah,
> 
> interesting, I thought it was intended to be so :)
> 
> I use the following code : 
> 
> import rdkit.Chem as chem,  rdkit.Chem.Draw as chemDraw
> 
> ligand=chem.MolFromSmiles(smilesCode)
>                 
> if ligand:
>        chemDraw.MolToImageFile(ligand,tmpdir+os.sep+"test.gif", size=(250, 
> 98), kekulize=True, wedgeBonds=True)
> 
> 
> 
> I did not try on other systems, but this happens on a opensuse 11.1 64 bit, 
> with rdkit q4 2009 and boost 1.41
> 
> I'll check on my mac as soon as I get rdkit installed if that problems occurs 
> there also :) 
> 
> Cheers.
> 
> Peter
> 
> 
> On 29/07/2010, at 11:03, Greg Landrum wrote:
> 
> > On Thu, Jul 29, 2010 at 9:23 AM, Peter Schmidtke <[email protected]> wrote:
> >> Hey all,
> >> 
> >> I always wondered, why colours in the 2D depictions in Rdkit are red for 
> >> nitrogens and blue for oxygens?
> >> 
> > 
> > I would also wonder if I saw something like that. It doesn't happen
> > for me though. How are you generating depictions?
> > 
> > -greg
> 
> Peter Schmidtke
> 
> -----------------
> PhD Student
> Department of Physical Chemistry
> School of Pharmacy
> University of Barcelona
> Barcelona, Spain
> 
> 
> ------------------------------------------------------------------------------
> The Palm PDK Hot Apps Program offers developers who use the
> Plug-In Development Kit to bring their C/C++ apps to Palm for a share
> of $1 Million in cash or HP Products. Visit us here for more details:
> http://p.sf.net/sfu/dev2dev-palm
> _______________________________________________
> Rdkit-discuss mailing list
> [email protected]
> https://lists.sourceforge.net/lists/listinfo/rdkit-discuss




------------------------------------------------------------------------------
The Palm PDK Hot Apps Program offers developers who use the
Plug-In Development Kit to bring their C/C++ apps to Palm for a share
of $1 Million in cash or HP Products. Visit us here for more details:
http://p.sf.net/sfu/dev2dev-palm
_______________________________________________
Rdkit-discuss mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/rdkit-discuss

Reply via email to