MCPcopy Create free account
hub / github.com/ColdGrub1384/Pyto / _auto_set_column_width

Method _auto_set_column_width

site-packages/matplotlib/table.py:455–467  ·  view source on GitHub ↗

Automatically set width for column.

(self, col, renderer)

Source from the content-addressed store, hash-verified

453 self.stale = True
454
455 def _auto_set_column_width(self, col, renderer):
456 """Automatically set width for column."""
457 cells = [key for key in self._cells if key[1] == col]
458
459 # find max width
460 width = 0
461 for cell in cells:
462 c = self._cells[cell]
463 width = max(c.get_required_width(renderer), width)
464
465 # Now set the widths
466 for cell in cells:
467 self._cells[cell].set_width(width)
468
469 def auto_set_font_size(self, value=True):
470 """ Automatically set font size. """

Callers 1

_update_positionsMethod · 0.95

Calls 3

maxFunction · 0.85
get_required_widthMethod · 0.80
set_widthMethod · 0.45

Tested by

no test coverage detected