class documentation
class GraphArtist(Artist, AbstractGraphDrawer):
Constructor: GraphArtist(graph, vertex_drawer_factory, edge_drawer_factory, mark_groups, ...)
Artist for an igraph.Graph object.
| Parameters | |
| graph | An igraph.Graph object to plot |
| layout | A layout object or matrix of coordinates to use for plotting. Each element or row should describes the coordinates for a vertex. |
| vertex | A dictionary specifying style options for vertices. |
| edge | A dictionary specifying style options for edges. |
| Method | __init__ |
Undocumented |
| Method | contains |
Track 'contains' event for mouse interactions. |
| Method | draw |
Draw each of the children, with some buffering mechanism. |
| Method | get |
Undocumented |
| Method | get |
Get limits on x/y axes based on the graph layout data. |
| Method | get |
Get edge label artists. |
| Method | get |
Get edge artists. |
| Method | get |
Get group/cluster/cover artists. |
| Method | get |
Get vertex label artists. |
| Method | get |
Get vertex artists. |
| Method | pick |
Track 'pick' event for mouse interactions. |
| Method | set |
Set multiple parameters at once. |
| Instance Variable | edge |
Undocumented |
| Instance Variable | edge |
Undocumented |
| Instance Variable | edge |
Undocumented |
| Instance Variable | edge |
Undocumented |
| Instance Variable | graph |
Undocumented |
| Instance Variable | kwds |
Undocumented |
| Instance Variable | legend |
Undocumented |
| Instance Variable | stale |
Undocumented |
| Instance Variable | vertex |
Undocumented |
| Instance Variable | vertex |
Undocumented |
| Instance Variable | vertex |
Undocumented |
| Instance Variable | vertex |
Undocumented |
| Method | _clear |
Undocumented |
| Method | _draw |
Undocumented |
| Method | _draw |
Draw the edges |
| Method | _draw |
Draw the highlighted vertex groups, if requested |
| Method | _draw |
Undocumented |
| Method | _draw |
Draw the vertices |
| Method | _kwds |
Undocumented |
| Method | _reprocess |
Prepare artist and children for the actual drawing. |
| Method | _set |
Undocumented |
| Instance Variable | _edge |
Undocumented |
| Instance Variable | _edges |
Undocumented |
| Instance Variable | _group |
Undocumented |
| Instance Variable | _legend |
Undocumented |
| Instance Variable | _vertex |
Undocumented |
| Instance Variable | _vertices |
Undocumented |
Inherited from AbstractGraphDrawer:
| Static Method | ensure |
Helper method that ensures that layout is an instance of Layout. If it is not, the method will try to convert it to a Layout according to the following rules: |
| Static Method | _determine |
Returns the order in which the edge of the given graph have to be drawn, assuming that the relevant keyword arguments (edge_order and edge_order_by) are given in kwds as a dictionary. If neither edge_order... |
| Static Method | _determine |
Returns the order in which the vertices of the given graph have to be drawn, assuming that the relevant keyword arguments (vertex_order and vertex_order_by) are given in kwds as a dictionary. If neither ... |
def __init__(self, graph, vertex_drawer_factory=MatplotlibVertexDrawer, edge_drawer_factory=MatplotlibEdgeDrawer, mark_groups=None, layout=None, palette=None, **kwds):
¶
Undocumented
Get limits on x/y axes based on the graph layout data.
There is a small padding based on the size of the vertex marker to ensure it fits into the canvas.
Get edge artists.
Note that for directed edges, an edge might have more than one artist, e.g. arrow shaft and arrowhead.