Just to maybe explain this better:

When my list has the following elements x = [0:250], it is displayed 
correctly on the x axis as [0:250], but then data is added/removed from my 
list, so later on my list still has a length of 250 elements but the 
elements are x = [750:1000]
so my hope is the graph will display only these elements on the x axis, 
however the x -axis is ranged from 0:1000 and the displayed data is only in 
the range of 750:1000 with the range of 0:750 being blank

On Friday, April 2, 2021 at 10:57:31 AM UTC+2 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].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/pyqtgraph/2e514f16-88a3-4025-a326-359d4b14d7f5n%40googlegroups.com.

Reply via email to