Answers for "suptitle and title fall on top of each other"

0

super title python

import matplotlib.pyplot as plt
import numpy as np

fig=plt.figure()
data=np.arange(900).reshape((30,30))
for i in range(1,5):
    ax=fig.add_subplot(2,2,i)        
    ax.imshow(data)

fig.suptitle('Main title') # or plt.suptitle('Main title')
plt.show()
Posted by: Guest on September-29-2020

Code answers related to "suptitle and title fall on top of each other"

Python Answers by Framework

Browse Popular Code Answers by Language