4fcfd4a9ba15b4cb4077dddacb1e184bba14747b,lib/matplotlib/table.py,Table,_auto_set_column_width,#Table#Any#Any#,519
Before Change
cells = [key for key in self._cells if key[1] == col]
// find max width
width = 0
for cell in cells:
c = self._cells[cell]
width = max(c.get_required_width(renderer), width)
// Now set the widths
for cell in cells:
self._cells[cell].set_width(width)
def auto_set_font_size(self, value=True):
After Change
def _auto_set_column_width(self, col, renderer):
Automatically set width for column.
cells = [cell for key, cell in self._cells.items() if key[1] == col]
max_width = max((cell.get_required_width(renderer) for cell in cells),
default=0)
for cell in cells:
cell.set_width(max_width)
def auto_set_font_size(self, value=True):
In pattern: SUPERPATTERN
Frequency: 3
Non-data size: 9
Instances Project Name: matplotlib/matplotlib
Commit Name: 4fcfd4a9ba15b4cb4077dddacb1e184bba14747b
Time: 2018-12-09
Author: anntzer.lee@gmail.com
File Name: lib/matplotlib/table.py
Class Name: Table
Method Name: _auto_set_column_width
Project Name: wenwei202/iss-rnns
Commit Name: 365464a1244c68642017f27886bbc5e0b3665edc
Time: 2016-08-30
Author: seominjoon@gmail.com
File Name: match/evaluator.py
Class Name: TempEvaluator
Method Name: span_f1
Project Name: matplotlib/matplotlib
Commit Name: 4fcfd4a9ba15b4cb4077dddacb1e184bba14747b
Time: 2018-12-09
Author: anntzer.lee@gmail.com
File Name: examples/text_labels_and_annotations/arrow_demo.py
Class Name:
Method Name: make_arrow_plot