📜  plt.text 背景 alpha - Python 代码示例

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

代码示例2
plt_text = plt.text(
    0.5,  # x
    0.5,  # y
    'your text',  # text
    fontsize=30
)
plt_text.set_bbox(dict(
    facecolor='red',  # background color
    alpha=0.5,  # background alpha
    edgecolor='red'  # border color
))