FormPlotter.draw_nodes
- FormPlotter.draw_nodes(*args, **kwargs)[source]
Draws the nodes of a
FormDiagram.- Parameters
keys (
listofint) – The keys of the nodes to plot.radius (
float,dictoffloat) – The radius of the nodes.text (
str,dictofstr) – A dictionary of strings to render on the nodes.facecolor (
color,dictofcolor) – Color for the node circle fill in (r, g, b) format.edgecolor (
color,dictofcolor) – Color for the node circle edge in (r, g, b) format.edgewidth (
float,dictoffloat) – Width for the node circle edge.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{node_key: attribute}is supplied, specific values can be assigned individually.