class documentation
class CairoDendrogramDrawer(AbstractCairoDrawer):
Default Cairo drawer object for dendrograms.
Method | __init__ |
Constructs the drawer and associates it to the given palette. |
Method | draw |
Draws the given Dendrogram in a Cairo context. |
Instance Variable | palette |
Undocumented |
Static Method | _item |
Calculates the amount of space needed for drawing an individual vertex at the bottom of the dendrogram. |
Method | _plot |
Plots a dendrogram item to the given Cairo context |
Inherited from AbstractCairoDrawer
:
Method | bbox |
Sets the bounding box of the drawing area where this drawer will draw. |
Instance Variable | context |
Undocumented |
Property | bbox |
The bounding box of the drawing area where this drawer will draw. |
Method | _mark |
Marks the given point with a small circle on the canvas. Used primarily for debugging purposes. |
Instance Variable | _bbox |
Undocumented |
Constructs the drawer and associates it to the given palette.
Parameters | |
context | the context on which we will draw |
bbox | the bounding box within which we will draw. Can be anything accepted by the constructor of BoundingBox (i.e., a 2-tuple, a 4-tuple or a BoundingBox object). |
palette | the palette that can be used to map integer color indices to colors when drawing vertices |
Draws the given Dendrogram in a Cairo context.
Parameters | |
dendro | the igraph.Dendrogram to plot. It accepts the following keyword arguments:
If only the row names or the column names are given and the matrix is square-shaped, the same names are used for both column and row names. |
**kwds | Undocumented |
Calculates the amount of space needed for drawing an individual vertex at the bottom of the dendrogram.