I'd like for the headers of the columns to have a smaller font than the values in the cells so that they're readable (I'll show what I mean in an attached jpeg). Right now everything has the same font size.
Example of the table code:
fig = plt.figure(figsize=(11, 8.27))
ax = fig.add_subplot(111)
ax.axis('off')
index_length = len(well_data_table.index)
table_1 = well_data_table.iloc[0:30]
table_2= well_data_table.iloc[30:60]
table_3 = well_data_table.iloc[60:-1]
q='lightsalmon'
colors3 = [q,q,q,q,q,q,q,q,q,q,q]
the_table1 = ax.table(cellText=table_1.values, colWidths =
[.1]*len(table_1.columns),
rowLabels=table_1.index,
colColours = colors3,
colLabels=table_1.columns,
cellLoc = 'center', rowLoc = 'center',
loc='bottom',
bbox=[.1, 0, 1, 1])
the_table1.auto_set_font_size(False)
the_table1.set_fontsize(8)
the_table1.scale(1, 1)
ax.title.set_text("""TEST""")
pdf.savefig(facecolor='w')
