如何更改matplotplot title中的背景色?

2024-06-01 00:59:13 发布

您现在位置:Python中文网/ 问答频道 /正文

enter image description here

这张图是由R绘制的,我想知道的是如何使用matplotlib进行绘制。 我试过plt.title('aaa', backgroundcolor= 'silver'),但它只改变了文本覆盖的背景色。在

enter image description here

有什么办法吗? 谢谢


Tags: 文本silvertitlematplotlib绘制plt办法aaa