matplotlib —— 添加文本信息(text)
生活随笔
收集整理的這篇文章主要介紹了
matplotlib —— 添加文本信息(text)
小編覺得挺不錯的,現在分享給大家,幫大家做個參考.
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
轉載于:https://www.cnblogs.com/mtcnn/p/9423116.html
總結
以上是生活随笔為你收集整理的matplotlib —— 添加文本信息(text)的全部內容,希望文章能夠幫你解決所遇到的問題。
- 上一篇: 为什么做梦梦到鬼压床
- 下一篇: AngularJs学习笔记(四)