推荐学习书目
› 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 · May 20, 2024 · 4482 views
    This topic created in 864 days ago, the information mentioned may be changed or developed.

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

    但是我想要的效果是

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

    Supplement 1  ·  May 21, 2024

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

    4 replies  •  2024-05-21 15:23:42 +08:00
    qianxaingmoli
        1
    qianxaingmoli  
       May 20, 2024
    Pyecharts
    TrackBack
        2
    TrackBack  
       May 21, 2024   ❤️ 1
    matplotlib 支持嵌入 pyqt
    zhzy
        3
    zhzy  
       May 21, 2024
    mpl 是可以接受鼠标事件的, fig.canvas.mpl_connect("button_press_event", self.on_button_click), 在 onclick 里重绘一下画面就行了, 效果反正只能说能用
    ma6254
        4
    ma6254  
       May 21, 2024
    qwebengine + echarts
    About   ·   Help   ·   Advertise   ·   Blog   ·   API   ·   FAQ   ·   Privacy   ·   Solana   ·   811 Online   Highest 6679   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 30ms · UTC 22:40 · PVG 06:40 · LAX 15:40 · JFK 18:40
    ♥ Do have faith in what you're doing.