Search code examples
pythonplotwxpythonwxwidgets

What's the best way to plot realtime graph in a wxPanel?


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?


Solution

  • 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:

    See also the following: