📜  plt text matplotlib 白色背景 - Python 代码示例

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

代码示例1
import numpy as np
import matplotlib.pyplot as plt
plt.figure()
ax = plt.subplot(111)
plt.plot(np.linspace(1,0,1000))
t = plt.text(0.03,.95,'text',transform=ax.transAxes,backgroundcolor='0.75',alpha=.5)
plt.show()