📜  matplotlib 插入文本 - Python 代码示例

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

代码示例1
import matplotlib.pyplot as plt
fig, ax = plt.subplots()
textstr = "Test"
ax.text(0.05, 0.95, textstr, transform=ax.transAxes, fontsize=14,
        verticalalignment='top')