Matplotlib setting title bold while using “Times New Roman”

前端 未结 3 688
野的像风
野的像风 2021-01-04 05:48

Originally I can set the figure title to bold by the following:

import Matplotlib.pyplot as plt

plt.title(\"Test\",fontweight=\"bold\")

bu

3条回答
  •  遥遥无期
    2021-01-04 06:40

    fontweight is the argument for the fig.suptitle() function. So this should work for you, fig.suptitle("Test",fontweight='bold')

提交回复
热议问题