如果我有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)
还想在图表之间放置更多的空格,以使轴值不会局促和重叠。.是否还有其他选择?
最佳答案
关于python - 使用奇数图表时,将最后一个matplotlib子图图表居中,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/30635255/