@@ -1037,19 +1037,19 @@ def enable(self, *args):
1037
1037
table .edges = 'B'
1038
1038
self .text_axes .add_table (table )
1039
1039
chars_in_width = self ._find_chars_in_width (table .FONTSIZE )
1040
-
1041
- table .auto_set_font_size (False )
1042
- col_chars_width = int (chars_in_width / 4 ) - 2
1043
- content = self ._get_content (col_chars_width , col_chars_width ,
1044
- 2 * col_chars_width )
1040
+ col_chars_width = int (chars_in_width / 6 )
1041
+ content = self ._get_content (1 * col_chars_width - 2 ,
1042
+ 2 * col_chars_width - 2 ,
1043
+ 3 * col_chars_width - 2 )
1045
1044
for i , v in enumerate (content ):
1046
1045
h = v [0 ]
1047
1046
table .add_cell (i , 0 , text = v [1 ], width = 1 , height = h , loc = 'left' ,
1048
1047
fontproperties = 'monospace' )
1049
- table .add_cell (i , 1 , text = v [2 ], width = 1 , height = h , loc = 'left' ,
1048
+ table .add_cell (i , 1 , text = v [2 ], width = 2 , height = h , loc = 'left' ,
1050
1049
fontproperties = 'monospace' )
1051
- table .add_cell (i , 2 , text = v [3 ], width = 2 , height = h , loc = 'left' ,
1050
+ table .add_cell (i , 2 , text = v [3 ], width = 3 , height = h , loc = 'left' ,
1052
1051
fontproperties = 'monospace' )
1052
+ table .auto_set_font_size (True )
1053
1053
self .figure .canvas .draw_idle ()
1054
1054
1055
1055
def _find_chars_in_width (self , fontsize ):
0 commit comments