clear_diagram_attributes#
- clear_diagram_attributes(k, attr=None)#
Clear main diagram-level attributes of the diagram k, or the list of planar diagrams k.
- 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.