NetworkArtist
-
class
compas_ghpython.artists.
NetworkArtist
(network)[source] Bases:
compas_ghpython.artists._artist.BaseArtist
A network artist defines functionality for visualising COMPAS networks in GhPython.
- Parameters
network (compas.datastructures.Network) – A COMPAS network.
- Attributes
network (
compas.datastructures.Network
) – The COMPAS network associated with the artist.color_nodes (3-tuple) – Default color of the nodes.
color_edges (3-tuple) – Default color of the edges.
Methods
draw
()Draw the entire network with default color settings.
draw_edges
([edges, color])Draw a selection of edges.
draw_nodes
([nodes, color])Draw a selection of nodes.