gpt4 book ai didi

pyqt - Qtdesigner 中的 Matplotlib 小部件

转载 作者:行者123 更新时间:2023-12-01 15:36:10 25 4
gpt4 key购买 nike

我正在使用 Qtdesigner3 编写一个 python gui,它将读取数据文件做一些数学运算,然后使用 matplotlib 绘制结果。我看过 matplotlib qt 的示例,但没有一个使用设计器。

我的问题是如何在 QTdesigner 中创建 matplotlib 小部件?

最佳答案

在 pythonxy 邮件列表中对几乎这个确切的问题有更好的回应

http://groups.google.com/group/pythonxy/browse_thread/thread/c52424bf11328181?pli=1

引用线程中的要点。这是该项目的一位主要开发人员提供的。

You may directly use the Matplotlib Qt Designer plugin which is shipped with Python(x,y). It is located here: "C:\Python26\Lib\site-packages\PyQt4\plugins \designer\python". On your linux machine, create an environment variable called PYQTDESIGNERPATH, and set it to the directory containing 'matplotlibplugin.py'. That's all!

关于pyqt - Qtdesigner 中的 Matplotlib 小部件,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/6753639/

25 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com