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

Method get_default_bbox_extra_artists

lib/matplotlib/figure.py:1797–1806  ·  view source on GitHub ↗

Return a list of Artists typically used in `.Figure.get_tightbbox`.

(self)

Source from the content-addressed store, hash-verified

1795 return projection_class, kwargs
1796
1797 def get_default_bbox_extra_artists(self):
1798 """
1799 Return a list of Artists typically used in `.Figure.get_tightbbox`.
1800 """
1801 bbox_artists = [artist for artist in self.get_children()
1802 if (artist.get_visible() and artist.get_in_layout())]
1803 for ax in self.axes:
1804 if ax.get_visible():
1805 bbox_artists.extend(ax.get_default_bbox_extra_artists())
1806 return bbox_artists
1807
1808 def get_tightbbox(self, renderer=None, *, bbox_extra_artists=None):
1809 """

Callers

nothing calls this directly

Calls 3

get_childrenMethod · 0.95
get_in_layoutMethod · 0.80
get_visibleMethod · 0.45

Tested by

no test coverage detected