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 963e51d commit d86e805Copy full SHA for d86e805
lib/matplotlib/table.py
@@ -409,7 +409,21 @@ def _do_cell_alignment(self):
409
cell.set_y(bottoms[row])
410
411
def auto_set_column_width(self, col):
412
+ """ Given column indexs in either List, Tuple or int. Will be able to
413
+ automatically set the columns into optimal sizes.
414
415
+ Args:
416
+ col(List): list of indexs
417
+ >>>table.auto_set_column_width([-1,0,1])
418
+
419
+ col(Tuple): tuple of indexs
420
+ >>>table.auto_set_column_width((-1,0,1))
421
422
+ col(int): index integer
423
+ >>>table.auto_set_column_width(-1)
424
+ >>>table.auto_set_column_width(0)
425
+ >>>table.auto_set_column_width(1)
426
+ """
427
# check for col possibility on iteration
428
try:
429
iter(col)
0 commit comments