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

Method __init__

galleries/examples/misc/demo_ribbon_box.py:49–53  ·  view source on GitHub ↗
(self, ax, bbox, color, *, extent=(0, 1, 0, 1), **kwargs)

Source from the content-addressed store, hash-verified

47 zorder = 1
48
49 def __init__(self, ax, bbox, color, *, extent=(0, 1, 0, 1), **kwargs):
50 super().__init__(ax, extent=extent, **kwargs)
51 self._bbox = bbox
52 self._ribbonbox = RibbonBox(color)
53 self.set_transform(BboxTransformTo(bbox))
54
55 def draw(self, renderer):
56 stretch_factor = self._bbox.height / self._bbox.width

Callers

nothing calls this directly

Calls 4

BboxTransformToClass · 0.90
RibbonBoxClass · 0.85
__init__Method · 0.45
set_transformMethod · 0.45

Tested by

no test coverage detected