Ask Your Question

Revision history [back]

click to hide/show revision 1
initial version

Resizing the table font to fit into the page

This table

h_r=["Environnement","Transports","Sécurité","Santé","Sports-et-loisirs","Culture","Enseignement","Commerces","Qualité de vie"]
h_q=["","$\\textbf{Antony}$","$\\textbf{Aix les Bains}$","$\\textbf{Sceaux}$","$\\textbf{Maison-Laffite}$","$\\textbf{Saint-Gratien}$"]
Q=[[8.11,4,7.88,7.83,8.49,8.37,8.03,8.36,7.97,8.46],
[8.73,6.81,7.64,7.93,8.87,7.66,7.43,7.5,8.66],
[8.68,7.1,7.6,7.48,7.91,8.02,8.89,7.85,8.46],
[8.65,7.46,8.45,6.73,8.46,7.55,7.48,7.68,8.51],
[8.13,7.68,7.46,7.38,8.23,7.93,7.7,7.97,8.52]]
QQ=[[round(x,4) for x in Q[i]] for i in range(len(Q))]
T=table(QQ,header_row=h_r,header_column=h_q,align='center')
T

is nice looking but it will be better with a smaller font to fit in the page. Is this request possible ?