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

Skip to content

Commit d86e805

Browse files
committed
docstring added
1 parent 963e51d commit d86e805

File tree

1 file changed

+14
-0
lines changed

1 file changed

+14
-0
lines changed

lib/matplotlib/table.py

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -409,7 +409,21 @@ def _do_cell_alignment(self):
409409
cell.set_y(bottoms[row])
410410

411411
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.
412414
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+
"""
413427
# check for col possibility on iteration
414428
try:
415429
iter(col)

0 commit comments

Comments
 (0)