📜  超级标题python代码示例

📅  最后修改于: 2022-03-11 14:45:40.255000             🧑  作者: Mango

代码示例1
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()