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

Class HandlerEllipse

galleries/users_explain/axes/legend_guide.py:354–362  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

352
353
354class HandlerEllipse(HandlerPatch):
355 def create_artists(self, legend, orig_handle,
356 xdescent, ydescent, width, height, fontsize, trans):
357 center = 0.5 * width - 0.5 * xdescent, 0.5 * height - 0.5 * ydescent
358 p = mpatches.Ellipse(xy=center, width=width + xdescent,
359 height=height + ydescent)
360 self.update_prop(p, orig_handle, legend)
361 p.set_transform(trans)
362 return [p]
363
364
365c = mpatches.Circle((0.5, 0.5), 0.25, facecolor="green",

Callers 1

legend_guide.pyFile · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…