Matplotlib subplot space between rows code example
Example 1: matplotlib space between subplots
import matplotlib.pyplot as plt
matplotlib.pyplot.subplots_adjust(wspace=X, hspace=Y)
Example 2: matplotlib add space between subplots
import matplotlib.pyplot as plt
fig, axes = plt.subplots(nrows=4, ncols=4)
fig.tight_layout()
plt.show()
Example 3: python subplot space between plots
import matplotlib.pyplot as plt
fig, axes = plt.subplots(nrows=4, ncols=4)
fig.tight_layout(rect=[0, 0.03, 1, 0.95])
plt.show()