简体   繁体   English

使用PyQT Python显示EMG(心电图)

[英]Displaying EMG (Electromyography) with PyQT Python

I have to display an elecromyography (it's like an electrocardiogram) based on values i get from another file. 我必须根据从另一个文件中获得的值来显示心电图(就像心电图一样)。 Is there any widget in python Qt which will allow me to do that ? python Qt中是否有任何小部件可以让我做到这一点?

What i want is something which will look like this picture : 我想要的是看起来像这张图片的东西:

Example of EMG 肌电图的例子

So, a graph based on the time (x) and voltages (y) 因此,基于时间(x)和电压(y)的图形

Thx for your help ! 谢谢您的帮助!

There is no built-in widget that will directly give you anything as complex as an EMG graph, so you would have to write something yourself using Qt's Graphics View Framework , which would obviously be quite a lot of work. 没有内置的小部件可以直接为您提供与EMG图一样复杂的任何内容,因此您必须使用Qt的Graphics View Framework自己编写一些东西,这显然是很多工作。

For out-of-the-box solutions, you could try something like Qwt (Qt Widgets for Technical Applications), for which PyQwt provides python bindings. 对于开箱即用的解决方案,您可以尝试使用Qwt (用于技术应用程序的Qt窗口小部件)之类的东西,为此PyQwt提供了python绑定。 Or there's also matplotlib , which has a backend which provides support for PyQt/Qt. 或者还有matplotlib ,它具有一个后端 ,该后端提供对PyQt / Qt的支持。

UPDATE : 更新

As has been pointed out, there's also PyQtGraph . 正如已经指出的,还有PyQtGraph But rather than list all the possibilities here, it would probably be easier to just point you towards the Graphical Representations of Data page on the Python Wiki. 但是,与其在此处列出所有可能性,不如直接将您带到Python Wiki上的“数据图形表示”页面。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM