- cell.append('{:.1f}° C'.format(value))
- cells.append(cell)
-
- ax = plt.gca()
- ax.table(cellText=cells, colLabels=columns,
- loc='upper left')
- ax.axis('off')
- plt.title(title)
- plt.subplots_adjust(left=0.1, right=0.9) # do not cut row labels
- pdf.savefig()
-
- # graphic
- plt.figure(figsize=a4)
- plt.plot(x, y)
- plt.xticks(days_datetime, days_str, rotation='vertical')
- plt.xlabel('Tag')
- plt.axis(xmin=begin, xmax=end)
- plt.grid()
+ cell = '{:.1f}'.format(value)
+ row_cells.append(cell)
+ cells.append(row_cells)
+ table = plt.table(cellText=cells, colLabels=columns, rowLabels=rows, loc='bottom')
+ table.scale(xscale=1, yscale=2)