| Trees | Indices | Help |
|
|---|
|
|
Cluster tree visualization using Sping
|
|||
|
VisOpts stores visualization options for cluster viewing |
|||
| ClusterRenderer | |||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
Imports: pid, piddle, ClusterUtils, numpy
|
|||
handles the work of drawing a cluster tree on a Sping canvas
**Arguments**
- cluster: the cluster tree to be drawn
- canvas: the Sping canvas on which to draw
- size: the size of _canvas_
- ptColors: if this is specified, the _colors_ will be used to color
the terminal nodes of the cluster tree. (color == _pid.Color_)
- lineWidth: if specified, it will be used for the widths of the lines
used to draw the tree
**Notes**
- _Canvas_ is neither _save_d nor _flush_ed at the end of this
- if _ptColors_ is the wrong length for the number of possible terminal
node types, this will throw an IndexError
- terminal node types are determined using their _GetData()_ methods
|
handles the work of drawing a cluster tree on a Sping canvas
**Arguments**
- cluster: the cluster tree to be drawn
- canvas: the Sping canvas on which to draw
- size: the size of _canvas_
- ptColors: if this is specified, the _colors_ will be used to color
the terminal nodes of the cluster tree. (color == _pid.Color_)
- lineWidth: if specified, it will be used for the widths of the lines
used to draw the tree
**Notes**
- _Canvas_ is neither _save_d nor _flush_ed at the end of this
- if _ptColors_ is the wrong length for the number of possible terminal
node types, this will throw an IndexError
- terminal node types are determined using their _GetData()_ methods
|
handles the work of drawing a cluster tree to an PDF file
**Arguments**
- cluster: the cluster tree to be drawn
- fileName: the name of the file to be created
- size: the size of output canvas
- ptColors: if this is specified, the _colors_ will be used to color
the terminal nodes of the cluster tree. (color == _pid.Color_)
- lineWidth: if specified, it will be used for the widths of the lines
used to draw the tree
**Notes**
- if _ptColors_ is the wrong length for the number of possible terminal
node types, this will throw an IndexError
- terminal node types are determined using their _GetData()_ methods
|
handles the work of drawing a cluster tree to an SVG file
**Arguments**
- cluster: the cluster tree to be drawn
- fileName: the name of the file to be created
- size: the size of output canvas
- ptColors: if this is specified, the _colors_ will be used to color
the terminal nodes of the cluster tree. (color == _pid.Color_)
- lineWidth: if specified, it will be used for the widths of the lines
used to draw the tree
**Notes**
- if _ptColors_ is the wrong length for the number of possible terminal
node types, this will throw an IndexError
- terminal node types are determined using their _GetData()_ methods
|
handles the work of drawing a cluster tree to an image file
**Arguments**
- cluster: the cluster tree to be drawn
- fileName: the name of the file to be created
- size: the size of output canvas
- ptColors: if this is specified, the _colors_ will be used to color
the terminal nodes of the cluster tree. (color == _pid.Color_)
- lineWidth: if specified, it will be used for the widths of the lines
used to draw the tree
**Notes**
- The extension on _fileName_ determines the type of image file created.
All formats supported by PIL can be used.
- if _ptColors_ is the wrong length for the number of possible terminal
node types, this will throw an IndexError
- terminal node types are determined using their _GetData()_ methods
|
| Trees | Indices | Help |
|
|---|
| Generated by Epydoc 3.0.1 on Thu Feb 1 16:13:01 2018 | http://epydoc.sourceforge.net |