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

Method get_required_width

lib/matplotlib/table.py:175–178  ·  view source on GitHub ↗

Return the minimal required width for the cell.

(self, renderer)

Source from the content-addressed store, hash-verified

173 .bounds)
174
175 def get_required_width(self, renderer):
176 """Return the minimal required width for the cell."""
177 l, b, w, h = self.get_text_bounds(renderer)
178 return w * (1.0 + (2.0 * self.PAD))
179
180 @_docstring.interpd
181 def set_text_props(self, **kwargs):

Callers 2

auto_set_font_sizeMethod · 0.95

Calls 1

get_text_boundsMethod · 0.95

Tested by

no test coverage detected