clear_diagram_attributes#
- clear_diagram_attributes(k: PlanarDiagram | OrientedPlanarDiagram | set | list | tuple, attr=None)#
Clear main diagram-level attributes of the diagram k, or the list of planar diagrams k.
This function removes specified attributes from a given diagram or collection of diagrams. If no attribute is specified, all attributes will be cleared. The function supports individual diagrams or collections of diagrams such as lists, sets, or tuples. If a collection of attributes is provided, all specified attributes will be removed.
- Args:
- k (Union[PlanarDiagram, List[PlanarDiagram], Set[PlanarDiagram]]):
The object or a collection of objects whose attributes are to be cleared.
- attr (Optional[Union[List, Set, Tuple, str]]): The attribute(s) to remove. Can
be a single attribute (str), or a collection of attributes (list, set, or tuple). If None, all attributes will be cleared.