Hi,
I think you just need to change the way you update the data. Have a look
at the 1st plot of the ["Scrolling Plots"
example](https://github.com/pyqtgraph/pyqtgraph/blob/master/examples/scrollingPlots.py)
I hope this helps.
Carlos
On 02/04/2021 10:57, Ian Reischauer wrote:
Hi! I'm using pyqtgraph with pyqt5 for a gui. I have a slight issue
in that I have now enable autorange so that I dont manually have to
adjust the axis. What I do is that after I have buffered enough
elements (say 250) I start popping old data at the start of the list
and pushing new data to the end to keep a fixed list size of 250.
Problem is that the autorange seems to think that my list is growing
and although it displays the correct data, the x-axis grows.
So in effect the displayed data is being updated and displayed, but
the x axis is only adjusting the range to incorporate the new
data(thus growing the x-axis in the positive direction) but not
adjusting the x-axis to account for the data that has been
removed/popped from the start of the list.
I have a feeling I'm incorrectly incorporating something, however I
cant figure out where my error is.
Any help will be appreciated!
code : https://bpa.st/7SMQ
--
You received this message because you are subscribed to the Google
Groups "pyqtgraph" group.
To unsubscribe from this group and stop receiving emails from it, send
an email to [email protected]
<mailto:[email protected]>.
To view this discussion on the web visit
https://groups.google.com/d/msgid/pyqtgraph/9d8ca8c9-25df-4163-8477-04bd3316af4bn%40googlegroups.com
<https://groups.google.com/d/msgid/pyqtgraph/9d8ca8c9-25df-4163-8477-04bd3316af4bn%40googlegroups.com?utm_medium=email&utm_source=footer>.
--
You received this message because you are subscribed to the Google Groups
"pyqtgraph" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
To view this discussion on the web visit
https://groups.google.com/d/msgid/pyqtgraph/24c4fc4b-1fb9-7f95-5f6f-59e7bd9c31cd%40cells.es.