Remove :attr:`submobjects`. The mobjects are removed from :attr:`submobjects`, if they exist. Subclasses of mobject may implement ``-`` and ``-=`` dunder methods. Parameters ---------- mobjects The mobjects to remove. Returns --
(self, *mobjects: Mobject)
| 624 | return self |
| 625 | |
| 626 | def remove(self, *mobjects: Mobject) -> Self: |
| 627 | """Remove :attr:`submobjects`. |
| 628 | |
| 629 | The mobjects are removed from :attr:`submobjects`, if they exist. |
| 630 | |
| 631 | Subclasses of mobject may implement ``-`` and ``-=`` dunder methods. |
| 632 | |
| 633 | Parameters |
| 634 | ---------- |
| 635 | mobjects |
| 636 | The mobjects to remove. |
| 637 | |
| 638 | Returns |
| 639 | ------- |
| 640 | :class:`Mobject` |
| 641 | ``self`` |
| 642 | |
| 643 | See Also |
| 644 | -------- |
| 645 | :meth:`add` |
| 646 | |
| 647 | """ |
| 648 | for mobject in mobjects: |
| 649 | if mobject in self.submobjects: |
| 650 | self.submobjects.remove(mobject) |
| 651 | return self |
| 652 | |
| 653 | def __sub__(self, other): |
| 654 | raise NotImplementedError |
no outgoing calls