Collapse tree items with no visible plots