Matplotlib interactive graph embedded in PyQt

前端 未结 1 1212
情歌与酒
情歌与酒 2021-02-06 09:29

I\'ve created a simple python script that when run should display an embedded matplotlib graph inside a PyQT window. I\'ve used this tutorial for embedding and running the graph

1条回答
  •  粉色の甜心
    2021-02-06 10:14

    It's been a while but I was working on a similar problem. I have an example here. Maybe this will help.

    The program is using PySide, shouldn't be a problem though.

    To run the program

    python pyStocker.py
    

    You would see a widget popup and in the top left you'll see a TextEdit box. Just enter GOOG or some other valid stock symbol and press enter. The graph will populate with the stock's data. The slider bar at the bottom changes the graph real-time.

    0 讨论(0)
提交回复
热议问题