I want to reduce the spacing between the first and second subplots and increase the spacing between the second and third subplots. What should I do?
import numpy as np
import matplotlib.pyplot as plt
plt.figure(figsize=(10, 5))
a = np.random.random((100, 100, 3))
b = np.random.random((100, 100, 3))
grid = plt.GridSpec(2, 3, wspace=0.3, hspace=0.2, height_ratios=[1,1],width_ratios=[1,1,1.8])
plt.subplot(grid[0, 0])
plt.axis('off')
plt.imshow(a)
plt.subplot(grid[0, 1])
plt.axis('off')
plt.imshow(a)
plt.subplot(grid[0, 2])
b = b.reshape((100 * 100 * 3))
plt.hist(b, bins=30, range=(0, 1))
# plt.tight_layout()
plt.show()

