ForceDiagram.face_attributes
-
ForceDiagram.face_attributes(key, names=None, values=None) Get or set multiple attributes of a face.
- Parameters
key (int) – The identifier of the face.
names (list, optional) – A list of attribute names.
values (list, optional) – A list of attribute values.
- Returns
dict, list or None – If the parameter
namesis empty, a dictionary of all attribute name-value pairs of the face. If the parameternamesis not empty, a list of the values corresponding to the provided names.Noneif the function is used as a “setter”.- Raises
KeyError – If the face does not exist.