Hi All,
I have found a good workaround for prettier SVG output from rdkit
I changed the DrawingOptions directly in the code :
rdkit.Chem.Draw.MolDrawing.py
# Changed from .3
dblBondOffset= .12
#Changed from 12
atomLabelFontSize= 6
There is probably a more pythonic way to ovveride this without changing the
underlying code in the DrawingOptions class inside
rdkit.Chem.Draw.MolDrawing.py
Thanks
Hari
On Tue, Nov 12, 2013 at 4:41 PM, hari jayaram <[email protected]> wrote:
> Hi ,
> I am using the svg output from the Chem.MolToFile to get svg for all my
> molecules to display to an html page.
>
> This is "working" quite well ..but I find that the drawing looks really
> messy for small rings because the heteroatom labels are too large.
>
> This may be specific to the way my browser ( tested with google-chrome and
> Safari - on iOS and OSX/WIndows/Linux) treats the SVG..but I was wondering
> if anyone knew a way around this- i.e to make the heteoatom labels
> proportional in some way?
>
> Also apologies because this is strictly speaking probably a cairo or an
> html question?
>
> Thanks for your help
>
> Hari
>
>
------------------------------------------------------------------------------
DreamFactory - Open Source REST & JSON Services for HTML5 & Native Apps
OAuth, Users, Roles, SQL, NoSQL, BLOB Storage and External API Access
Free app hosting. Or install the open source package on any LAMP server.
Sign up and see examples for AngularJS, jQuery, Sencha Touch and Native!
http://pubads.g.doubleclick.net/gampad/clk?id=63469471&iu=/4140/ostg.clktrk
_______________________________________________
Rdkit-discuss mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/rdkit-discuss