Skip to content

Commit 137df89

Browse files
Federico Arizafariza
Federico Ariza
authored andcommitted
more space for keys
1 parent 38d83af commit 137df89

File tree

1 file changed

+7
-7
lines changed

1 file changed

+7
-7
lines changed

lib/matplotlib/backend_tools.py

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1037,19 +1037,19 @@ def enable(self, *args):
10371037
table.edges = 'B'
10381038
self.text_axes.add_table(table)
10391039
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)
10451044
for i, v in enumerate(content):
10461045
h = v[0]
10471046
table.add_cell(i, 0, text=v[1], width=1, height=h, loc='left',
10481047
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',
10501049
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',
10521051
fontproperties='monospace')
1052+
table.auto_set_font_size(True)
10531053
self.figure.canvas.draw_idle()
10541054

10551055
def _find_chars_in_width(self, fontsize):

0 commit comments

Comments
 (0)