FormPlotter.draw_edges

FormPlotter.draw_edges(*args, **kwargs)[source]

Draws the edges of a FormDiagram.

Parameters
  • keys (list of tuple) – The keys of the edges to plot.

  • width (float, dict of float) – Width of the edges.

  • color (color, dict of color) – Color of the edges in (r, g, b) format.

  • text (str, dict of str) – A dictionary of strings to render on the nodes.

  • textcolor (color, dict of color) – Color for the text to be displayed on the nodes.

  • fontsize (int, dict of int) – 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.