Hmm, that certainly should not be happening, not sure quite why things
would be going like that.  If you can, I would try slowing down the update
rate of the plot, to easily catch one of those instances and post some code
here if you can for us to try and replicate.

Another suggestion would be to set the invalid points to numpy.nan instead
of float("inf") and see if that gets better behavior; I think that was the
value we were originally looking for.

On Fri, Sep 30, 2022 at 7:27 AM AB <[email protected]> wrote:

> I am trying to display some data in a line graph - there are 1024 points,
> updating ~40 times/second.  Some of the points are invalid (set to
> float("inf") ) and are supposed to cause a break in the line if I
> understand the default behaviour of the "connect" parameter correctly.
> However, I am periodically seeing that there is a straight line joining the
> valid points either side of the invalid period.
>
> I can stop updating the graph and catch this happening - as soon as I use
> the mouse zoom functionality to change the scale of the graph in this state
> the erroneous line vanishes, and the graph is drawn with breaks in the line
> as I expect that it should.
>
> Can anyone suggest why the erroneous lines are appearing, and how I can
> ensure they don't appear?
>
> --
> 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/559c2c62-8372-471f-b36c-77e314368006n%40googlegroups.com
> <https://groups.google.com/d/msgid/pyqtgraph/559c2c62-8372-471f-b36c-77e314368006n%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/CA%2BnduTHfMsd2No2w9TLPXQZiu702d7jqsAyeTwgU-HL0CgXeGA%40mail.gmail.com.

Reply via email to