CHAPTER 03 · 作品已接入
表格
用 table() 将表格数据嵌入图表区域。
import matplotlib.pyplot as plt
cell_text = [['02', '6', 'done'],
['03', '6', 'done'],
['04', '6', 'done']]
plt.table(cellText=cell_text,
colLabels=['Chapter', 'Items', 'Status'],
loc='center')
plt.axis('off')
plt.show()