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

Method _create_patch

lib/matplotlib/legend_handler.py:340–349  ·  view source on GitHub ↗
(self, legend, orig_handle,
                      xdescent, ydescent, width, height, fontsize)

Source from the content-addressed store, hash-verified

338 self._patch_func = patch_func
339
340 def _create_patch(self, legend, orig_handle,
341 xdescent, ydescent, width, height, fontsize):
342 if self._patch_func is None:
343 p = Rectangle(xy=(-xdescent, -ydescent),
344 width=width, height=height)
345 else:
346 p = self._patch_func(legend=legend, orig_handle=orig_handle,
347 xdescent=xdescent, ydescent=ydescent,
348 width=width, height=height, fontsize=fontsize)
349 return p
350
351 def create_artists(self, legend, orig_handle,
352 xdescent, ydescent, width, height, fontsize, trans):

Callers 1

create_artistsMethod · 0.95

Calls 1

RectangleClass · 0.90

Tested by

no test coverage detected