(self, renderer)
| 683 | a.set_figure(fig) |
| 684 | |
| 685 | def draw(self, renderer): |
| 686 | # docstring inherited |
| 687 | |
| 688 | dpi_cor = renderer.points_to_pixels(1.) |
| 689 | self.dpi_transform.clear() |
| 690 | self.dpi_transform.scale(dpi_cor) |
| 691 | |
| 692 | # At this point the DrawingArea has a transform |
| 693 | # to the display space so the path created is |
| 694 | # good for clipping children |
| 695 | tpath = mtransforms.TransformedPath( |
| 696 | mpath.Path([[0, 0], [0, self.height], |
| 697 | [self.width, self.height], |
| 698 | [self.width, 0]]), |
| 699 | self.get_transform()) |
| 700 | for c in self._children: |
| 701 | if self._clip_children and not (c.clipbox or c._clippath): |
| 702 | c.set_clip_path(tpath) |
| 703 | c.draw(renderer) |
| 704 | |
| 705 | _bbox_artist(self, renderer, fill=False, props=dict(pad=0.)) |
| 706 | self.stale = False |
| 707 | |
| 708 | |
| 709 | class TextArea(OffsetBox): |
nothing calls this directly
no test coverage detected