FormPlotter.draw_edges
- FormPlotter.draw_edges(*args, **kwargs)[source]
Draws the edges of a
FormDiagram.- Parameters
keys (
listoftuple) – The keys of the edges to plot.width (
float,dictoffloat) – Width of the edges.color (
color,dictofcolor) – Color of the edges in (r, g, b) format.text (
str,dictofstr) – A dictionary of strings to render on the nodes.textcolor (
color,dictofcolor) – Color for the text to be displayed on the nodes.fontsize (
int,dictofint) – Font size for the text to be displayed on the nodes.
- Returns
collection (
matplotlib.collection) – A matplotlib point collection object.
Notes
When the parameters are passed as single value, this will be applied to all the nodes or edges in the
FormDiagram. If instead, a dictionary that maps{edge_key: attribute}is supplied, specific values can be assigned individually.