Solution1:
plt.tight_layout(rect=[0, 0, 0, 1]) # Adjusts top margin slightly
Solution 2:
Try Adjusting h_pad
in plt.tight_layout(h_pad=-3)
is might be not a correct solution because h_pad
(height padding) should be non-negative. But It Worked in this case:
plt.tight_layout(h_pad=-3)