V2EX = way to explore
V2EX 是一个关于分享和探索的地方
Sign Up Now
For Existing Member  Sign In
推荐学习书目
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 · Mar 4, 2021 · 2749 views
    This topic created in 1884 days ago, the information mentioned may be changed or developed.
    做量化的一名战五渣,
    然后需要用到 python 画图, 用 matplotlib 可以非常方便的进行画折线图, 但是我想在上面标注打点的时候,应该如何做的 。

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

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

    x,y 就是 横纵坐标具体值, 在这个位置标记 “内容”
    About   ·   Help   ·   Advertise   ·   Blog   ·   API   ·   FAQ   ·   Solana   ·   1739 Online   Highest 6679   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 32ms · UTC 00:01 · PVG 08:01 · LAX 17:01 · JFK 20:01
    ♥ Do have faith in what you're doing.