python - dynamic plotting in wxpython -


I am developing a GUI to read the data from the serial port continuously. After reading the data, some are calculated and the results are plotted and refreshed (aka Dynamic Plotting). I use the wx backend provided in the matplotlib for these purposes. To do this, I basically use an array to store my results, in which I keep adding it after each calculation, and the whole article I upload again. To make it "dynamic", I only set the X-axis lower and upper limit for each instance. Something found in:

The problem, however, is that since the data is continuous, and if I plot it, eventually the system memory will end and the system crashes. Will go Is there any other way that I can conspirate to carry out my results continuously?

To do this, I basically an array to store my results , In which I keep adding it to

Try to limit the size of this array, by removing old data or entering every N-th (screen resolution Will block all entries from displaying anyway). I believe that you write all the data on disk, so that you can not lose anything.

Also, encrypt your code for memory leaks. You do not need the content to be used anymore, but this garbage does not come up because you still have references to it.


Comments

Popular posts from this blog

c# - ListView onScroll event -

PHP - get image from byte array -

Linux Terminal Problem with Non-Canonical Terminal I/O app -