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

Method get_window_extent

lib/matplotlib/image.py:1484–1492  ·  view source on GitHub ↗
(self, renderer=None)

Source from the content-addressed store, hash-verified

1482 self.bbox = bbox
1483
1484 def get_window_extent(self, renderer=None):
1485 if isinstance(self.bbox, BboxBase):
1486 return self.bbox
1487 elif callable(self.bbox):
1488 if renderer is None:
1489 renderer = self.get_figure()._get_renderer()
1490 return self.bbox(renderer)
1491 else:
1492 raise ValueError("Unknown type of bbox")
1493
1494 def contains(self, mouseevent):
1495 """Test whether the mouse event occurred within the image."""

Callers 2

containsMethod · 0.95
make_imageMethod · 0.95

Calls 2

_get_rendererMethod · 0.45
get_figureMethod · 0.45

Tested by

no test coverage detected