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

Method get_window_extent

lib/matplotlib/axes/_base.py:855–869  ·  view source on GitHub ↗

Return the Axes bounding box in display space. This bounding box does not include the spines, ticks, ticklabels, or other labels. For a bounding box including these elements use `~matplotlib.axes.Axes.get_tightbbox`. See Also -------- matpl

(self, renderer=None)

Source from the content-addressed store, hash-verified

853 return self._subplotspec.get_gridspec() if self._subplotspec else None
854
855 def get_window_extent(self, renderer=None):
856 """
857 Return the Axes bounding box in display space.
858
859 This bounding box does not include the spines, ticks, ticklabels,
860 or other labels. For a bounding box including these elements use
861 `~matplotlib.axes.Axes.get_tightbbox`.
862
863 See Also
864 --------
865 matplotlib.axes.Axes.get_tightbbox
866 matplotlib.axis.Axis.get_tightbbox
867 matplotlib.spines.Spine.get_window_extent
868 """
869 return self.bbox
870
871 def _init_axis(self):
872 # This is moved out of __init__ because non-separable axes don't use it

Callers 15

get_tightbboxMethod · 0.95
bar_labelMethod · 0.45
test_usetex_packagesFunction · 0.45
test_title_text_locFunction · 0.45
test_legend_auto4Function · 0.45
test_legend_auto5Function · 0.45
test_legend_textFunction · 0.45

Calls

no outgoing calls

Tested by 15

test_usetex_packagesFunction · 0.36
test_title_text_locFunction · 0.36
test_legend_auto4Function · 0.36
test_legend_auto5Function · 0.36
test_legend_textFunction · 0.36
test_titletwinyFunction · 0.36
color_boxesFunction · 0.36