📅  最后修改于: 2022-03-11 14:47:20.199000             🧑  作者: Mango
import matplotlib.pyplot as plt
# figure related code
fig = plt.figure()
fig.suptitle('bold figure suptitle', fontsize=14, fontweight='bold')
ax = fig.add_subplot(111)
ax.boxplot(data)
ax.set_title('axes title')
ax.set_xlabel('xlabel')
ax.set_ylabel('ylabel')
plt.show()