Dear Carlos, Sorry for late reply. I added a line "autopan.updateRange()" in the addPoint function, and deleted all timer lines in the XAutoPanTool class. It worked fantastic. Thank you so much for your help. It was invaluable, as I am still a noob. Don't know how to thank you enough... was stuck in this problem for about 2 weeks now. Would like to buy you a beer if there is a chance. :)
On Wednesday, October 3, 2018 at 7:25:14 AM UTC, Carlos Pascual wrote: > > > > On October 3, 2018 6:13:56 AM GMT+02:00, [email protected] <javascript:> > wrote: > > >Could you advise me how to pan the chart with every new update point, > >as > >opposed to by time? That is, with a new point, it pans right. > > > In my case i used a time trigger for 2 reasons: > - efficiency (in my apps it is common to get thousands of new points per > second) > - isolation: i wanted to implement it as a tool that does not require any > extra config to be usable other than to attach it to an existing plot. > > But if you do not have those constraints, just call the updateRange method > whenever you are processing a new incoming event. > > I hope this helps > -- 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/019afd6f-e3ac-4337-ae96-74c14e8e577d%40googlegroups.com. For more options, visit https://groups.google.com/d/optout.
