(self)
| 518 | self._paths[icon] = Path.make_compound_path(*additions) |
| 519 | |
| 520 | def remove(self): |
| 521 | super().remove() |
| 522 | for text in self.labelTexts: |
| 523 | try: |
| 524 | text.remove() |
| 525 | except ValueError: |
| 526 | _api.warn_external( |
| 527 | "Some labels were manually removed from the ContourSet. " |
| 528 | "To remove labels cleanly, remove the entire ContourSet " |
| 529 | "and recreate it.") |
| 530 | self.labelTexts.clear() |
| 531 | |
| 532 | |
| 533 | def _find_closest_point_on_path(xys, p): |