Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit ced77e4

Browse files
bug fix related #5479
1 parent 1943acc commit ced77e4

1 file changed

Lines changed: 7 additions & 1 deletion

File tree

lib/matplotlib/table.py

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -410,7 +410,13 @@ def _do_cell_alignment(self):
410410

411411
def auto_set_column_width(self, col):
412412

413-
self._autoColumns.append(col)
413+
# col is a list of column index
414+
if isinstance(col, list):
415+
for cell in col:
416+
self._autoColumns.append(cell)
417+
# col is just an index
418+
else:
419+
self._autoColumns.append(col)
414420
self.stale = True
415421

416422
def _auto_set_column_width(self, col, renderer):

0 commit comments

Comments
 (0)