MCPcopy Create free account
hub / github.com/ColdGrub1384/Pyto / _create_patch

Method _create_patch

site-packages/matplotlib/legend_handler.py:284–293  ·  view source on GitHub ↗
(self, legend, orig_handle,
                      xdescent, ydescent, width, height, fontsize)

Source from the content-addressed store, hash-verified

282 self._patch_func = patch_func
283
284 def _create_patch(self, legend, orig_handle,
285 xdescent, ydescent, width, height, fontsize):
286 if self._patch_func is None:
287 p = Rectangle(xy=(-xdescent, -ydescent),
288 width=width, height=height)
289 else:
290 p = self._patch_func(legend=legend, orig_handle=orig_handle,
291 xdescent=xdescent, ydescent=ydescent,
292 width=width, height=height, fontsize=fontsize)
293 return p
294
295 def create_artists(self, legend, orig_handle,
296 xdescent, ydescent, width, height, fontsize, trans):

Callers 1

create_artistsMethod · 0.95

Calls 1

RectangleClass · 0.90

Tested by

no test coverage detected