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

Class AnyObjectHandler

galleries/users_explain/axes/legend_guide.py:323–331  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

321
322
323class AnyObjectHandler:
324 def legend_artist(self, legend, orig_handle, fontsize, handlebox):
325 x0, y0 = handlebox.xdescent, handlebox.ydescent
326 width, height = handlebox.width, handlebox.height
327 patch = mpatches.Rectangle([x0, y0], width, height, facecolor='red',
328 edgecolor='black', hatch='xx', lw=3,
329 transform=handlebox.get_transform())
330 handlebox.add_artist(patch)
331 return patch
332
333fig, ax = plt.subplots()
334

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…