python decrease gap between subplot rows

Solutions on MaxInterview for python decrease gap between subplot rows by the best coders in the world

showing results for - "python decrease gap between subplot rows"
Emilia
23 Mar 2020
1# Short answer:
2# If you have too much white space between rows (or columns) of a figure
3# with subplots, you can either shrink the vertical (or horizontal) 
4# dimensions of the figure with figsize so that they get more "squished"
5# together, or you can adjust the margin around the subplots
6fig, ax = plt.subplots(rows, cols, figsize=[24,12])
7plt.subplots_adjust(bottom=0.3, top=0.7, hspace=0)