import matplotlib.pyplot as plt
fig = plt.figure()
ax = fig.add_subplot(111)
y = [1, 2, 3, 4, 5, 4, 3, 2, 1, 1, 1, 1, 1, 1, 1, 1]
col_labels = ['col1', 'col2', 'col3']
row_labels = ['row1', 'row2', 'row3']
table_vals = [[11, 12, 13], [21, 22, 23], [31, 32, 33]]
the_table = plt.table(cellText=table_vals, colWidths=[0.1] * 3, rowLabels=
    row_labels, colLabels=col_labels, loc='center right')
the_table.set_fontsize(24)
the_table.scale(2, 2)
plt.plot(y)
plt.show()
How to change the table's fontsize with matplotlib.pyplot?