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
zisen
V2EX  ›  Python

pyqt 怎么实现可以交互的直方图

  •  
  •   zisen · 14 天前 · 805 次点击

    问了 chatgpt ,最多只能做到下图这样

    但是我想要的效果是

    鼠标可以直接拉动直方图,

    第 1 条附言  ·  13 天前

    感谢各位的回复,自己用pyqt的滑块和滑槽拼了一个可以交互直方图出来

    4 条回复    2024-05-21 15:23:42 +08:00
    qianxaingmoli
        1
    qianxaingmoli  
       14 天前
    Pyecharts
    TrackBack
        2
    TrackBack  
       13 天前   ❤️ 1
    matplotlib 支持嵌入 pyqt
    zhzy
        3
    zhzy  
       13 天前
    mpl 是可以接受鼠标事件的, fig.canvas.mpl_connect("button_press_event", self.on_button_click), 在 onclick 里重绘一下画面就行了, 效果反正只能说能用
    ma6254
        4
    ma6254  
       13 天前
    qwebengine + echarts
    关于   ·   帮助文档   ·   博客   ·   API   ·   FAQ   ·   实用小工具   ·   3098 人在线   最高记录 6679   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 21ms · UTC 11:34 · PVG 19:34 · LAX 04:34 · JFK 07:34
    Developed with CodeLauncher
    ♥ Do have faith in what you're doing.