Re: [Rdkit-devel] drawing amino acids

2017-09-09 Thread Igor Filippov
Greg, I figured out what the problem is: getStringSize() calculates the pixel height/width of a given atom label. For labels such as NH3+ the argument this function is getting is NH3+ which makes for a very long sting, which throws off the scale calculation. I am not sure why it works correctly

Re: [Rdkit-devel] drawing amino acids

2017-09-08 Thread Igor Filippov
Great - thanks, I'll try it! Igor On Fri, Sep 8, 2017 at 8:27 AM, Greg Landrum wrote: > > On Fri, Sep 8, 2017 at 2:10 PM, Igor Filippov > wrote: > >> >>> >>> Could it be that you didn't generate coordinates for the molecule? >>> >>> The

Re: [Rdkit-devel] drawing amino acids

2017-09-08 Thread Greg Landrum
Hi Igor, Could it be that you didn't generate coordinates for the molecule? BTW: rdMolDraw2D.PrepareMolForDrawing() is a useful function to know about. -greg On Thu, Sep 7, 2017 at 2:16 PM, Igor Filippov wrote: > Dear Colleagues, > > I seem to remember there