Hi, could you help me with this, please? I have this script for plotting subplot. How to set the space between the first and the second rows of plots? I hid an axis and the limits are set in such a way that the line is in some distance from margins. Thus, there is a bigger space with comparison to other plots. How to set that space smaller? I tried plt.tight_layout(), but it was not successful. It set all spaces. Thank you
import numpy as np
import matplotlib.pyplot as plt
from mpl_toolkits.mplot3d import Axes3D # 3d graph
from mpl_toolkits.mplot3d import proj3d # 3d graph
# Plot subplot
fig, (ax1, ax2, ax3, ax4) = plt.subplots(4, 2, figsize=(10,13))
x = [-1, 0]
y = [-5, 5]
fig1 = plt.subplot(421)
plt.plot(x,y)
fig1.set_ylim(-8.3,8.3)
fig1.set_xlim(-8.3,8.3)
fig1.set_aspect(np.diff(fig1.get_xlim())/np.diff(fig1.get_ylim()))
plt.axis('off')
fig2 = plt.subplot(422)
plt.plot(x,y)
plt.plot(x,y)
fig2.set_ylim(-8.3,8.3)
fig2.set_xlim(-8.3,8.3)
fig2.set_aspect(np.diff(fig2.get_xlim())/np.diff(fig2.get_ylim()))
plt.axis('off')
fig3 = plt.subplot(423, projection = '3d')
fig4=plt.subplot(424, projection = '3d')
fig5=plt.subplot(425, projection = '3d')
fig6=plt.subplot(426, projection = '3d')
fig7=plt.subplot(427, projection = '3d')
fig8=plt.subplot(428, projection = '3d')
plt.show()