Skip to content

Commit 92ccded

Browse files
committed
auto_set_column_width docstring with example given
1 parent d86e805 commit 92ccded

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

lib/matplotlib/table.py

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -412,6 +412,12 @@ def auto_set_column_width(self, col):
412412
""" Given column indexs in either List, Tuple or int. Will be able to
413413
automatically set the columns into optimal sizes.
414414
415+
Here is the example of the input, which triger automatic adjustment on
416+
column to optimal size by given index numbers.
417+
-1: the row labling
418+
0: the 1st column
419+
1: the 2nd column
420+
415421
Args:
416422
col(List): list of indexs
417423
>>>table.auto_set_column_width([-1,0,1])

0 commit comments

Comments
 (0)