figure, axes, axis, add_subplot, subplot
figure包括axes figure是画板,axes是画板上的子图
figure 使用add_subplot , pyplot使用的是subplot生成一个figure ,figure 里面再包含多个axes, axes 本质上是一个数组
pyplot有两个函数figure(figsize=指定画板大小)和subplot(nrows = , ncols,figsize=(大小)), fig = plt.figure(figsize=(12, 8)),
使用pyplot生成figure和指定数目axes
ax1, ax2, ax3, ax4 = ax.flatten() # flatten a 2d NumPy array to 1d
axes中相关参数的设置
ax.set_title(‘axes title’) 设置总体题目
ax.