NetworkArtist

class compas_ghpython.artists.NetworkArtist(*args, **kwargs)[source]

Bases: compas_ghpython.artists.artist.GHArtist, compas.artists.networkartist.NetworkArtist

Artist for drawing network data structures.

Parameters

network (compas.datastructures.Network) – A COMPAS network.

Attributes

default_edgecolor

default_nodecolor

Inherited Attributes

AVAILABLE_CONTEXTS

CONTEXT

ITEM_ARTIST

default_edgewidth

default_nodesize

edge_color

edge_text

edge_width

edges

network

node_color

node_size

node_text

node_xyz

nodes

Methods

draw

Draw the entire network with default color settings.

draw_edges

Draw a selection of edges.

draw_nodes

Draw a selection of nodes.

Inherited Methods

build

Build an artist corresponding to the item type.

build_as

clear

clear_edges

clear_nodes

draw_collection

redraw

register