FormPlotter.draw_nodes
- FormPlotter.draw_nodes(*args, **kwargs)[source]
Draws the nodes of a
FormDiagram
.- Parameters
keys (
list
ofint
) – The keys of the nodes to plot.radius (
float
,dict
offloat
) – The radius of the nodes.text (
str
,dict
ofstr
) – A dictionary of strings to render on the nodes.facecolor (
color
,dict
ofcolor
) – Color for the node circle fill in (r, g, b) format.edgecolor (
color
,dict
ofcolor
) – Color for the node circle edge in (r, g, b) format.edgewidth (
float
,dict
offloat
) – Width for the node circle edge.textcolor (
color
,dict
ofcolor
) – Color for the text to be displayed on the nodes.fontsize (
int
,dict
ofint
) – 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.