class documentation

class EdgeCollection(PatchCollection): (source)

Constructor: EdgeCollection(*args, **kwargs)

View In Hierarchy

Undocumented

Method __init__ Undocumented
Method draw Undocumented
Method get_arrow_size Get arrow sizes for the edges (directed only).
Method get_arrow_sizes Same as get_arrow_size.
Method get_arrow_width Get arrow widths for the edges (directed only).
Method get_arrow_widths Same as get_arrow_width.
Method set_arrow_size Set arrow sizes.
Method set_arrow_sizes Same as set_arrow_size
Method set_arrow_width Set arrow widths.
Method set_arrow_widths Same as set_arrow_width
Method stale.setter Undocumented
Property stale Undocumented
Static Method _compute_edge_angles Compute edge angles for both starting and ending vertices.
Static Method _get_edge_vertex_sizes Undocumented
Method _compute_path_directed Undocumented
Method _compute_path_loop Undocumented
Method _compute_path_undirected Undocumented
Method _compute_paths Undocumented
Instance Variable _arrow_sizes Undocumented
Instance Variable _arrow_widths Undocumented
Instance Variable _curved Undocumented
Instance Variable _directed Undocumented
Instance Variable _loop_sizes Undocumented
Instance Variable _paths Undocumented
Instance Variable _visual_vertices Undocumented
def __init__(self, *args, **kwargs): (source)

Undocumented

def draw(self, renderer): (source)

Undocumented

def get_arrow_size(self): (source)

Get arrow sizes for the edges (directed only).

Returns
An array of arrow sizes.
def get_arrow_sizes(self): (source)

Same as get_arrow_size.

def get_arrow_width(self): (source)

Get arrow widths for the edges (directed only).

Returns
An array of arrow widths.
def get_arrow_widths(self): (source)

Same as get_arrow_width.

def set_arrow_size(self, sizes): (source)

Set arrow sizes.

Parameters
sizesA sequence of arrow sizes or a single size.
def set_arrow_sizes(self, sizes): (source)

Same as set_arrow_size

def set_arrow_width(self, widths): (source)

Set arrow widths.

Parameters
widthsA sequence of arrow widths or a single width.
def set_arrow_widths(self, widths): (source)

Same as set_arrow_width

@stale.setter
def stale(self, val): (source)

Undocumented

Undocumented

@staticmethod
def _compute_edge_angles(path, trans, directed, curved): (source)

Compute edge angles for both starting and ending vertices.

NOTE: The domain of atan2 is (-pi, pi].

@staticmethod
def _get_edge_vertex_sizes(edge_vertices): (source)

Undocumented

def _compute_path_directed(self, coordst, sizes, trans_inv, curved, arrow_size, arrow_width): (source)

Undocumented

def _compute_path_loop(self, coordt, vertex_size, loop_size, angle1, angle2, trans_inv, angle_padding_fraction=0.1, arrow_size=None, arrow_width=None): (source)

Undocumented

def _compute_path_undirected(self, coordst, sizes, trans_inv, curved): (source)

Undocumented

def _compute_paths(self, transform=None): (source)

Undocumented

_arrow_sizes = (source)

Undocumented

_arrow_widths = (source)

Undocumented

Undocumented

_directed = (source)

Undocumented

_loop_sizes = (source)

Undocumented

Undocumented

_visual_vertices = (source)

Undocumented