我试图在python matplotlib中绘制具有相同框大小的图形。基本上,我希望使每个图形的轴的高度和宽度相同(请参见下图中的红色箭头)
fig, axes = plt.subplots(nrows=1, ncols=1, figsize=(3.5,3))
axes.plot([0.1,0.2,0.3])
axes.set_ylabel(ylabel='Y',weight='bold')
axes.set_xlabel('X',weight='bold')
plt.show()
fig, axes = plt.subplots(nrows=1, ncols=1, figsize=(3.5,3))
axes.plot([1,2,3])
axes.set_ylabel(ylabel='Y',weight='bold')
axes.set_xlabel('X',weight='bold')
plt.show()
我想确定a=c和B=d如果你能帮助我,我将非常感激
1条答案
按热度按时间f3temu5u1#
你是说像这样的东西吗?