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

Function draw_ellipse

galleries/examples/misc/anchored_artists.py:43–48  ·  view source on GitHub ↗

Draw an ellipse of width=0.1, height=0.15 in data coordinates.

(ax)

Source from the content-addressed store, hash-verified

41
42
43def draw_ellipse(ax):
44 """Draw an ellipse of width=0.1, height=0.15 in data coordinates."""
45 aux_tr_box = AuxTransformBox(ax.transData)
46 aux_tr_box.add_artist(Ellipse((0, 0), width=0.1, height=0.15))
47 box = AnchoredOffsetbox(child=aux_tr_box, loc="lower left", frameon=True)
48 ax.add_artist(box)
49
50
51def draw_sizebar(ax):

Callers 1

Calls 5

add_artistMethod · 0.95
AuxTransformBoxClass · 0.90
EllipseClass · 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…