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

Method _get_bbox_and_child_offsets

lib/matplotlib/offsetbox.py:340–356  ·  view source on GitHub ↗

Return the bbox of the offsetbox and the child offsets. The bbox should satisfy ``x0 <= x1 and y0 <= y1``. Parameters ---------- renderer : `.RendererBase` subclass Returns ------- bbox list of (xoffset, yoffset) pairs

(self, renderer)

Source from the content-addressed store, hash-verified

338 return self._children
339
340 def _get_bbox_and_child_offsets(self, renderer):
341 """
342 Return the bbox of the offsetbox and the child offsets.
343
344 The bbox should satisfy ``x0 <= x1 and y0 <= y1``.
345
346 Parameters
347 ----------
348 renderer : `.RendererBase` subclass
349
350 Returns
351 -------
352 bbox
353 list of (xoffset, yoffset) pairs
354 """
355 raise NotImplementedError(
356 "get_bbox_and_offsets must be overridden in derived classes")
357
358 def get_bbox(self, renderer):
359 """Return the bbox of the offsetbox, ignoring parent offsets."""

Callers 2

get_bboxMethod · 0.95
drawMethod · 0.95

Calls

no outgoing calls

Tested by

no test coverage detected