我目前正在尝试使用高斯使用对齐单元格表
colWidths
:
但colWidths
似乎不适用于bbox
。
你知道我怎么办吗?
plt.table(cellText=tableData,
rowLabels=rowLabels,
colLabels=None,loc='center',colWidths=[0.2]*5,
bbox=[0., -0.5,1, 0.3])
答案 0 :(得分:0)
最后,我决定抑制情节的x轴。
我没有使用bbox,我使用loc ='bottom'将表格粘贴到图表上。
关于我使用的单元格的大小:cell.set_width
table_prop = stats_table.properties()
table_cells = table_prop['child_artists']
for cell in table_cells:
cell.set_width((z2-z1)/4.4)
cell.set_linewidth(2)
#needed for precision problem between line from the gaussian and line from the border of the cell
结果