Matplotlib 如何更改轴图、子图的figsize?
figsize=10,5不起作用,子批次保持较小。您创建了两个图形。一个带子批次,一个10x5大。相反,只创建一个图形并设置单个图形的大小。@ImportanceOfBeingErnest,thx u,我删除了一个带有10,5的图形,但我不知道将标准图形放在哪里?Matplotlib 如何更改轴图、子图的figsize?,matplotlib,Matplotlib,figsize=10,5不起作用,子批次保持较小。您创建了两个图形。一个带子批次,一个10x5大。相反,只创建一个图形并设置单个图形的大小。@ImportanceOfBeingErnest,thx u,我删除了一个带有10,5的图形,但我不知道将标准图形放在哪里? x =np.random.random_integers(10,400,20) y = np.random.random_integers(1,600,20) fig,ax = plt.subplots(ncols=3,nrows=2
x =np.random.random_integers(10,400,20)
y = np.random.random_integers(1,600,20)
fig,ax = plt.subplots(ncols=3,nrows=2)
fig_for_all = plt.figure(figsize=(10,5))
ax[0,1].scatter(x,y,c='green', marker='*')
ax[0,2].scatter(y,x,c='red', marker = "8")
ax[1,0].bar(x,y)
ax[1,2].scatter(y,y*x, c='black', linewidth=3, marker='2')
ax[1,1].scatter(x,y, c = 'pink',marker = '3')