原文地址:点击打开链接
子图:就是在一张figure里面生成多张子图。
Matplotlib对象简介
FigureCanvas 画布
Figure 图
Axes 坐标轴(实际画图的地方)
注意,pyplot的方式中plt.subplot()参数和面向对象中的add_subplot()参数和含义都相同。
使用面向对象的方式
pyplot的方式
四个子图的顺序为从从左至右,从上到下依次为1,2,3,4
原文地址:点击打开链接
子图:就是在一张figure里面生成多张子图。
Matplotlib对象简介
FigureCanvas 画布
Figure 图
Axes 坐标轴(实际画图的地方)
注意,pyplot的方式中plt.subplot()参数和面向对象中的add_subplot()参数和含义都相同。
使用面向对象的方式