0

Currently I have this code at the bottom of a script to output a table to a .jpg.

plt.table(cellText=datReportDf.values,colLabels=datReportDf.columns)
imgPath = os.path.join(path3,f'dat_report.jpg')
plt.savefig(imgPath, dpi=300, bbox_inches='tight')
plt.close('all')

The table looks fine except that for some reason a big empty plot is put at the top:

enter image description here

0 Answers0