Answers for "how to equal space in subplot"

1

python decrease gap between subplot rows

# Short answer:
# If you have too much white space between rows (or columns) of a figure
# with subplots, you can either shrink the vertical (or horizontal) 
# dimensions of the figure with figsize so that they get more "squished"
# together, or you can adjust the margin around the subplots
fig, ax = plt.subplots(rows, cols, figsize=[24,12])
plt.subplots_adjust(bottom=0.3, top=0.7, hspace=0)
Posted by: Guest on December-15-2020
0

separate subplots in python

plt.tight_layout()
Posted by: Guest on January-29-2021

Python Answers by Framework

Browse Popular Code Answers by Language