Alex Schueth
2016-05-17 17:15:17 UTC
Sorry to revive this 3 years later, but did you ever find a solution that
would pan to the latest data point but would still allow interactivity?
Thanks again for your help. This is exactly the clarification I needed.
Cheers
would pan to the latest data point but would still allow interactivity?
Thank you, I understand now.
The problem is that auto-pan is designed to center the view on the
*average* value of an axis without changing the width of the view range.
I can see how the terminology "auto pan" is confusing in this case.
- The easiest solution is just to call self.plot1.setXRange() manually
after each update, but then you lose the ability to interactively explore
the data.
- This could be corrected by some mechanism allowing the user to
enable/disable automatic panning (perhaps overriding the behavior of the
"A" button in the PlotItem, or adding a new button there)
- Possibly ViewBox could be given a new option specifying whether it
should auto-pan to the (min, mean, median, max)
Luke
Luke,The problem is that auto-pan is designed to center the view on the
*average* value of an axis without changing the width of the view range.
I can see how the terminology "auto pan" is confusing in this case.
- The easiest solution is just to call self.plot1.setXRange() manually
after each update, but then you lose the ability to interactively explore
the data.
- This could be corrected by some mechanism allowing the user to
enable/disable automatic panning (perhaps overriding the behavior of the
"A" button in the PlotItem, or adding a new button there)
- Possibly ViewBox could be given a new option specifying whether it
should auto-pan to the (min, mean, median, max)
Luke
Thanks again for your help. This is exactly the clarification I needed.
Cheers
--
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 pyqtgraph+***@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/pyqtgraph/3b227d2c-098d-4447-ab6b-55757f09671e%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
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 pyqtgraph+***@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/pyqtgraph/3b227d2c-098d-4447-ab6b-55757f09671e%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.