FormPlotter.draw_nodes

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

Draws the nodes of a FormDiagram.

Parameters
  • keys (list of int) – The keys of the nodes to plot.

  • radius (float, dict of float) – The radius of the nodes.

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

  • facecolor (color, dict of color) – Color for the node circle fill in (r, g, b) format.

  • edgecolor (color, dict of color) – Color for the node circle edge in (r, g, b) format.

  • edgewidth (float, dict of float) – Width for the node circle edge.

  • 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 {node_key: attribute} is supplied, specific values can be assigned individually.