Add an `.Artist` to the container box.
(self, a)
| 672 | self.width * dpi_cor, self.height * dpi_cor) |
| 673 | |
| 674 | def add_artist(self, a): |
| 675 | """Add an `.Artist` to the container box.""" |
| 676 | self._children.append(a) |
| 677 | if not a.is_transform_set(): |
| 678 | a.set_transform(self.get_transform()) |
| 679 | if self.axes is not None: |
| 680 | a.axes = self.axes |
| 681 | fig = self.get_figure(root=False) |
| 682 | if fig is not None: |
| 683 | a.set_figure(fig) |
| 684 | |
| 685 | def draw(self, renderer): |
| 686 | # docstring inherited |