Spi*_*uce 5 python charts matplotlib subplot
如果我有 5 个图表,如果我制作了 3x2 子图,如何将最后一个(第 5 个)图表居中?
这是我当前的代码:
plt.figure(1)
plt.subplot(321)
firstperiod.megaball.plot(kind='hist', bins = 25)
plt.subplot(322)
secondperiod.megaball.plot(kind='hist', bins = 36)
plt.subplot(323)
thirdperiod.megaball.plot(kind='hist', bins = 52)
plt.subplot(324)
fourthperiod.megaball.plot(kind='hist', bins = 46)
plt.subplot(325)
fifthperiod.megaball.plot(kind='hist', bins = 15)
Run Code Online (Sandbox Code Playgroud)
还想在图表之间放置更多的空白,这样轴值就不会变得狭窄和重叠..还有一个选项吗?
归档时间: |
|
查看次数: |
7004 次 |
最近记录: |