在 wxPanel 中绘制实时图形的最佳方法是什么? [英] What's the best way to plot realtime graph in a wxPanel?

查看:71
本文介绍了在 wxPanel 中绘制实时图形的最佳方法是什么?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

在 400*300 wxPanel 中,每帧大约有 400 行.我使用了 PaintDC,但它的性能低于 30fps,并导致高负载.wxPython 中是否有其他解决方案,而不仅仅是切换 PyGame?

There will be approximately 400 line in each frame in 400*300 wxPanel. I used PaintDC but it performed lower than 30fps and it caused high load. Is there any alternative solution in wxPython instead of just switching PyGame?

推荐答案

您应该查看 wxPython 邮件列表.我怀疑大多数用户会注意到帧速率是否低于 30 fps.您还应该查看可以集成到 wxPython 中的 matplotlib.请参阅以下内容:

You should look at the wxPython mailing list. I doubt most users will notice if the frame rate is lower than 30 fps. You should also look at matplotlib which can be integrated into wxPython. See the following:

另见以下内容:

这篇关于在 wxPanel 中绘制实时图形的最佳方法是什么?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆