I'm drawing a table with matplotlib.axes.Axes.table
like this:
sub_axes.table(cellText=table_vals,
colWidths = [0.15, 0.25],
rowLabels=row_labels,
loc='right')
I'd like to change the fontsize of table's content, and found there is a fontsize
property.
So it becomes:
sub_axes.table(cellText=table_vals,
colWidths = [0.15, 0.25],
rowLabels=row_labels,
fontsize=12,
loc='right')
But when I execute the code, I got an error:
TypeError: table() got an unexpected keyword argument 'fontsize'
Is this property deprecated? And how can I change the fontsize of table with pyplot?