• matplotlib.pyplot.text(x, y, s, fontdict=None, withdash=False, **kwargs)

    • x, y:表示坐标;
    • s:字符串文本;
    • fontdict:字典,可选;
    • kw:
      • fontsize=12,
      • horizontalalignment=‘center’、ha=’cener’
      • verticalalignment=’center’、va=’center’
  • fig.text()(fig = plt.figure(…))

  • ax.text()(ax = plt.subplot(…))

官方文档 pyplot — Matplotlib 1.5.3 documentation

posted on 2016-10-26 14:56  未雨愁眸  阅读(261)  评论(0编辑  收藏  举报