NetworkArtist
- class compas_rhino.artists.NetworkArtist(*args, **kwargs)[source]
Bases:
compas_rhino.artists.artist.RhinoArtist,compas.artists.networkartist.NetworkArtistArtist for drawing network data structures.
- Parameters
network (
compas.datastructures.Network) – A COMPAS network.layer (str, optional) – The parent layer of the network.
nodes (list of int, optional) – A list of node identifiers. Default is
None, in which case all nodes are drawn.edges (list, optional) – A list of edge keys (as uv pairs) identifying which edges to draw. The default is
None, in which case all edges are drawn.nodecolor (rgb-tuple or dict of rgb-tuples, optional) – The color specification for the nodes.
edgecolor (rgb-tuple or dict of rgb-tuples, optional) – The color specification for the edges.
show_nodes (bool, optional)
show_edges (bool, optional)
Attributes
default_edgecolordefault_nodecolorInherited Attributes
AVAILABLE_CONTEXTSCONTEXTITEM_ARTISTdefault_edgewidthdefault_nodesizeedge_coloredge_textedge_widthedgesnetworknode_colornode_sizenode_textnode_xyznodesMethods
Draw the network using the chosen visualisation settings.
Draw labels for a selection of edges.
Draw a selection of edges.
Draw labels for a selection nodes.
Draw a selection of nodes.
Inherited Methods
Build an artist corresponding to the item type.