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

Method _create_patch

lib/matplotlib/legend_handler.py:367–369  ·  view source on GitHub ↗
(orig_handle, xdescent, ydescent, width, height)

Source from the content-addressed store, hash-verified

365
366 @staticmethod
367 def _create_patch(orig_handle, xdescent, ydescent, width, height):
368 return Rectangle(xy=(-xdescent, -ydescent), width=width,
369 height=height, color=orig_handle.get_facecolor())
370
371 @staticmethod
372 def _create_line(orig_handle, width, height):

Callers 1

create_artistsMethod · 0.95

Calls 2

RectangleClass · 0.90
get_facecolorMethod · 0.45

Tested by

no test coverage detected