Package obitools :: Package tree :: Module svg
[hide private]
[frames] | no frames]

Module svg

source code

Functions [hide private]
 
displayTreeLayout(layout, width=400, height=400, radius=3, scale=1.0)
Convert a tree layout object in an svg file.
source code
Variables [hide private]
  __package__ = 'obitools.tree'

Imports: math, Scene, Circle, Line, Rectangle, Text, Tree


Function Details [hide private]

displayTreeLayout(layout, width=400, height=400, radius=3, scale=1.0)

source code 

Convert a tree layout object in an svg file.

Parameters:
  • layout (obitools.tree.layout.TreeLayout) - the tree layout object
  • width (int) - svg document width
  • height (int) - svg document height
  • radius (int) - default radius of node in svg unit (default 3)
  • scale (float) - scale factor applied to the svg coordinates (default 1.0)
Returns:
str containing svg code