[NTG-context] draw random branched hydrocarbons

Alan BRASLAU alan.braslau at cea.fr
Tue Feb 4 23:14:13 CET 2014

On Tue, 4 Feb 2014 19:55:41 +0000
DesdeChaves <desdechaves at gmail.com> wrote:

> I wrote this code to randomly draw organic branched structures.
> Since the organic structures have different dimensions I'm using the
> scale function to normalize the width. The result is a rather ugly
> because the structures are displayed with fonts with different sizes.
> Is there a way to normalize the structures width only when it exceeds
> a certain size?

Why do you normalize the width?
If you set a fixed width (rather than width=fit), then the bounding box
will be normalized whatever is the size of the chemical structure.


More information about the ntg-context mailing list