Draw circles in axes coordinates.
(ax)
| 31 | |
| 32 | |
| 33 | def draw_circles(ax): |
| 34 | """Draw circles in axes coordinates.""" |
| 35 | area = DrawingArea(width=40, height=20) |
| 36 | area.add_artist(Circle((10, 10), 10, fc="tab:blue")) |
| 37 | area.add_artist(Circle((30, 10), 5, fc="tab:red")) |
| 38 | box = AnchoredOffsetbox( |
| 39 | child=area, loc="upper right", pad=0, frameon=False) |
| 40 | ax.add_artist(box) |
| 41 | |
| 42 | |
| 43 | def draw_ellipse(ax): |
no test coverage detected
searching dependent graphs…