How to remove the space between subplots in matplotlib.pyplot?

后端 未结 2 1765
余生分开走
余生分开走 2020-11-27 22:13

I am working on a project in which I need to put together a plot grid of 10 rows and 3 columns. Although I have been able to make the plots and arrange the subplots, I was n

2条回答
  •  隐瞒了意图╮
    2020-11-27 22:42

    Try to add to your code this line:

    fig.subplots_adjust(wspace=0, hspace=0)
    

    And for every an axis object set:

    ax.set_xticklabels([])
    ax.set_yticklabels([])
    

提交回复
热议问题