V2EX = way to explore
V2EX 是一个关于分享和探索的地方
现在注册
已注册用户请  登录
推荐学习书目
Learn Python the Hard Way
Python Sites
PyPI - Python Package Index
http://diveintopython.org/toc/index.html
Pocoo
值得关注的项目
PyPy
Celery
Jinja2
Read the Docs
gevent
pyenv
virtualenv
Stackless Python
Beautiful Soup
结巴中文分词
Green Unicorn
Sentry
Shovel
Pyflakes
pytest
Python 编程
pep8 Checker
Styles
PEP 8
Google Python Style Guide
Code Style from The Hitchhiker's Guide
somewheve
V2EX  ›  Python

如何在 matplotlib 折线图上面进行标注打点

  •  
  •   somewheve · 2021-03-04 13:18:57 +08:00 · 1837 次点击
    这是一个创建于 1121 天前的主题,其中的信息可能已经有所发展或是发生改变。
    做量化的一名战五渣,
    然后需要用到 python 画图, 用 matplotlib 可以非常方便的进行画折线图, 但是我想在上面标注打点的时候,应该如何做的 。

    大佬们有没有封装过这样的框架 啊

    求解 或者告诉我怎么做 。
    5 条回复    2021-03-04 18:31:43 +08:00
    Macv1994
        1
    Macv1994  
       2021-03-04 13:59:05 +08:00
    somewheve
        2
    somewheve  
    OP
       2021-03-04 14:34:13 +08:00
    @Macv1994 谢谢大佬 谢谢 找到了
    Macv1994
        3
    Macv1994  
       2021-03-04 15:24:45 +08:00
    @somewheve 没事 这个库文档还是挺清楚的
    hackpro
        4
    hackpro  
       2021-03-04 18:17:54 +08:00 via iPad
    我最近也在写一个量化程序的可视化
    用的是开源的 bokeh 卤煮看看
    mlboy
        5
    mlboy  
       2021-03-04 18:31:43 +08:00
    ax.text(x,y, '内容', ha='center', fontsize=10)

    x,y 就是 横纵坐标具体值, 在这个位置标记 “内容”
    关于   ·   帮助文档   ·   博客   ·   API   ·   FAQ   ·   我们的愿景   ·   实用小工具   ·   5577 人在线   最高记录 6543   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 29ms · UTC 06:36 · PVG 14:36 · LAX 23:36 · JFK 02:36
    Developed with CodeLauncher
    ♥ Do have faith in what you're doing.