MCPcopy
hub / github.com/matplotlib/matplotlib / get_tightbbox

Method get_tightbbox

lib/matplotlib/text.py:1082–1091  ·  view source on GitHub ↗
(self, renderer=None)

Source from the content-addressed store, hash-verified

1080 return bbox
1081
1082 def get_tightbbox(self, renderer=None):
1083 if not self.get_visible() or self.get_text() == "":
1084 return Bbox.null()
1085 # Exclude text at data coordinates outside the valid domain of the axes
1086 # scales (e.g., negative coordinates with a log scale).
1087 if (self.axes
1088 and self.get_transform() == self.axes.transData
1089 and not self.axes._point_in_data_domain(*self.get_unitless_position())):
1090 return Bbox.null()
1091 return super().get_tightbbox(renderer)
1092
1093 def set_backgroundcolor(self, color):
1094 """

Callers 4

get_tightbboxMethod · 0.45
make_layout_marginsFunction · 0.45
make_margin_suptitlesFunction · 0.45
print_figureMethod · 0.45

Calls 6

get_textMethod · 0.95
get_unitless_positionMethod · 0.95
nullMethod · 0.80
_point_in_data_domainMethod · 0.80
get_visibleMethod · 0.45
get_transformMethod · 0.45

Tested by

no test coverage detected