Thanks to visit codestin.com Credit goes to github.com
We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent ced77e4 commit 32c5553Copy full SHA for 32c5553
1 file changed
lib/matplotlib/table.py
@@ -410,13 +410,14 @@ def _do_cell_alignment(self):
410
411
def auto_set_column_width(self, col):
412
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
+ # check for col possibility on iteration
+ try:
+ iter(col)
+ except (TypeError, AttributeError):
+ self._autoColumns.append(col)
418
else:
419
- self._autoColumns.append(col)
+ for cell in col:
420
+ self._autoColumns.append(cell)
421
self.stale = True
422
423
def _auto_set_column_width(self, col, renderer):
0 commit comments