matplotlib method of adjusting subgraph spacing and overall whitespace

  • 2020-12-09 00:54:24
  • OfStack

As shown below:


fig.tight_layout()# Adjust overall blank 
 plt.subplots_adjust(wspace =0, hspace =0)# Adjust the spacing of subgraphs 

Related articles: