MCPcopy Index your code
hub / github.com/matplotlib/matplotlib / draw_circles

Function draw_circles

galleries/examples/misc/anchored_artists.py:33–40  ·  view source on GitHub ↗

Draw circles in axes coordinates.

(ax)

Source from the content-addressed store, hash-verified

31
32
33def 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
43def draw_ellipse(ax):

Callers 1

Calls 5

add_artistMethod · 0.95
DrawingAreaClass · 0.90
CircleClass · 0.90
AnchoredOffsetboxClass · 0.90
add_artistMethod · 0.45

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…