Package rdkit :: Package ML :: Package DecTree :: Module TreeVis

[hide private]
[frames] | no frames]

# Module TreeVis

source code

    functionality for drawing trees on sping canvases

Classes | [hide private]

| VisOpts

Functions | [hide private]

CalcTreeNodeSizes(node) Recursively calculate the total number of nodes under us. | source code

_ExampleCounter(node, min, max) | source code

_ApplyNodeScales(node, min, max) | source code

SetNodeScales(node) | source code

DrawTreeNode(node, loc, canvas, nRes=2, scaleLeaves=False, showPurity=False) Recursively displays the given tree node and all its children on the canvas... | source code

CalcTreeWidth(tree) | source code

DrawTree(tree, canvas, nRes=2, scaleLeaves=False, allowShrink=True, showPurity=False) | source code

ResetTree(tree) | source code

_simpleTest(canv) | source code

Variables | [hide private]

| visOpts = `<rdkit.ML.DecTree.TreeVis.VisOpts object>`
| __package__ = ``'``rdkit.ML.DecTree``'``

Imports: piddle, math

Function Details | [hide private]

### CalcTreeNodeSizes(node)

source code

    Recursively calculate the total number of nodes under us.

    results are set in node.totNChildren for this node and
    everything underneath it.

### DrawTreeNode(node, loc, canvas, nRes=2, scaleLeaves=False, showPurity=False)

source code

    Recursively displays the given tree node and all its children on the canvas