创建绘制并保存Python boxplot子图
# Create a figure instance
# fig = plt.figure(1, figsize=(9, 6))
# Create an axes(subplot) instance
# ax = fig.add_subplot(111)
# ax.boxplot(machine1)
# fig.savefig('machine_1_'+'boxplot1.png')
关闭屏幕显示
# use boxplot to show the data
# close the in screen print of the figure
plt.ioff()
# oprn the on screen print of the figure
plt.ion()