Yeah apologies I just found this answer in another thread:

http://www.mail-archive.com/rdkit-discuss@lists.sourceforge.net/msg02495.html

Thanks very much that did the trick.


On 25 January 2013 04:40, Greg Landrum <greg.land...@gmail.com> wrote:

> Huw,
>
>
> On Wed, Jan 23, 2013 at 1:54 PM, Huw Jones <huwdjo...@gmail.com> wrote:
>
>> Hi there,
>>
>> Sorry I think I sent the last mail to the wrong recipient and with the
>> wrong structure image in. Basically I am having an issue where some
>> structures depicted are being truncated e.g.
>>
>>
>>
>> I am using cairo and pango for the depictions. I have found that if I
>> manually alter the value in Chem/Draw/MolDrawing.py from the default 12 to
>> a lower value this remedies the issue:
>>
>> class MolDrawing(object):
>>
>> ...
>>
>> atomLabelFontSize = 12 #Decrease this...
>>
>> I was wondering though if this setting can be controlled from the API? Or
>> whether there is a better way of doing this?
>>
>
> The best solution would be for me to fix the drawing code so that this
> doesn't happen. Since that's going to take a while, a quick fix for you
> would be to go ahead and adjust the font size yourself. This is quite easy:
>
> In [14]: from rdkit.Chem import Draw
>
> In [15]: from rdkit.Chem.Draw import MolDrawing
>
> In [16]: MolDrawing.MolDrawing.atomLabelFontSize=8
>
> From this point forward in that Python session, all drawings will use a
> default font size of 8.
>
> I hope this helps,
> -greg
>
>


-- 
huwdjo...@hotmail.com
------------------------------------------------------------------------------
Master Visual Studio, SharePoint, SQL, ASP.NET, C# 2012, HTML5, CSS,
MVC, Windows 8 Apps, JavaScript and much more. Keep your skills current
with LearnDevNow - 3,200 step-by-step video tutorials by Microsoft
MVPs and experts. ON SALE this month only -- learn more at:
http://p.sf.net/sfu/learnnow-d2d
_______________________________________________
Rdkit-discuss mailing list
Rdkit-discuss@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/rdkit-discuss

Reply via email to