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

Method create_artists

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

Source from the content-addressed store, hash-verified

383 return legline
384
385 def create_artists(self, legend, orig_handle,
386 xdescent, ydescent, width, height, fontsize, trans):
387 # docstring inherited
388 if orig_handle.get_fill() or (orig_handle.get_hatch() is not None):
389 p = self._create_patch(orig_handle, xdescent, ydescent, width,
390 height)
391 self.update_prop(p, orig_handle, legend)
392 else:
393 p = self._create_line(orig_handle, width, height)
394 p.set_transform(trans)
395 return [p]
396
397
398class HandlerLineCollection(HandlerLine2D):

Callers

nothing calls this directly

Calls 6

_create_patchMethod · 0.95
_create_lineMethod · 0.95
get_fillMethod · 0.45
get_hatchMethod · 0.45
update_propMethod · 0.45
set_transformMethod · 0.45

Tested by

no test coverage detected