plt.figure(figsize=(16,12))

创建一个新画布,figsize为画布的大小。

显示情况:

plt.figure_其他

 

 

plt.suptitle(fontsize=15)

向图片中加入副标题。fontsize表示字体大小。

加入语句后页面情况:

plt.figure_其他_02

 plt.subplot(221)将界面分为俩行俩列。当前位置为一。

 plt.subplot(222)将界面分为俩行俩列。当前位置为二。

显示情况:

plt.figure_其他_03

 

 

plt.subplot(121)
plt.subplot(122)
plt.show()
显示情况:
plt.figure_其他_04