推荐学习书目
› 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 · 4854 views
    This topic created in 897 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
    qianxaingmoli
    May 20, 2024
    1
    Pyecharts
    TrackBack
    TrackBack
    May 21, 2024❤️1
    2
    matplotlib 支持嵌入 pyqt
    zhzy
    zhzy
    May 21, 2024
    3
    mpl 是可以接受鼠标事件的, fig.canvas.mpl_connect("button_press_event", self.on_button_click), 在 onclick 里重绘一下画面就行了, 效果反正只能说能用
    ma6254
    ma6254
    May 21, 2024
    4
    qwebengine + echarts
    About   ·   Help   ·   Advertise   ·   Blog   ·   API   ·   FAQ   ·   Privacy   ·   Solana   ·   4951 Online   Highest 6679   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 39ms · UTC 06:19 · PVG 14:19 · LAX 22:19 · JFK 01:19
    ♥ Do have faith in what you're doing.