使用matplotlib table.scale()方法不会降低表的行高

时间:2018-10-12 16:44:07

标签: python python-3.x matplotlib

我已经使用matplotlib创建了一个表。表格显示了图中不同标记的键。现在,我想以相同的比例减小表格中每一行的高度。 我尝试使用-

table.scale(xscale,yscale) 

但是无论我在yscale行高中给出什么值都保持不变。 我曾尝试给予-

table.scale(2,2)
table.scale(2,1)
table.scale(2,0.5) 

这三种情况的行高都保持不变,如何降低桌子的行高?是否有其他替代方法,因为大多数文章建议仅使用比例尺。

0 个答案:

没有答案