MCPcopy Create free account
hub / github.com/ColdGrub1384/Pyto / nonetree

Function nonetree

site-packages/matplotlib/_layoutbox.py:657–668  ·  view source on GitHub ↗

Make all elements in this tree none... This signals not to do any more layout.

(lb)

Source from the content-addressed store, hash-verified

655
656
657def nonetree(lb):
658 '''
659 Make all elements in this tree none... This signals not to do any more
660 layout.
661 '''
662 if lb is not None:
663 if lb.parent is None:
664 # Clear the solver. Hopefully this garbage collects.
665 lb.solver.reset()
666 nonechildren(lb)
667 else:
668 nonetree(lb.parent)
669
670
671def nonechildren(lb):

Callers

nothing calls this directly

Calls 2

nonechildrenFunction · 0.85
resetMethod · 0.45

Tested by

no test coverage detected