How to set a single, main title above all the subplots with Pyplot?

前端 未结 3 1531
栀梦
栀梦 2020-12-04 05:12

I am using pyplot. I have 4 subplots. How to set a single, main title above all the subplots? title() sets it above the last subplot.

3条回答
  •  萌比男神i
    2020-12-04 06:03

    If your subplots also have titles, you may need to adjust the main title size:

    plt.suptitle("Main Title", size=16)
    

提交回复
热议问题