GraphObject.draw_nodelabels

GraphObject.draw_nodelabels(text, color=None, group=None, fontheight=10, fontface='Arial Regular')[source]

Draw labels for a selection of nodes.

Parameters:
textdict[int, str]

A dictionary of node labels as node-text pairs.

colorcompas.colors.Color | dict[int, compas.colors.Color], optional

Color of the labels.

groupstr, optional

The name of a group to add the labels to.

fontheightfloat, optional

Font height of the labels.

fontfacestr, optional

Font face of the labels.

Returns:
list[System.Guid]

The GUIDs of the created Rhino text objects.