Real time data and panning problem

Jul 26, 2014 at 1:45 PM
Edited Jul 26, 2014 at 1:46 PM
Hi,

I am using the Xamarin iOS component and have two plots that get real time data and I have two small issues.
  1. When I synchronize the vertical axis of the two plots and when I move the Y axis on either plot, data just disappears from the other plot. When I synchronize the horizontal axis everything is ok.
    Synchro is done as per the WpfExamples (coupled axes demo). Is it a bug or vertical synchro is different from horizontal one?
  2. The real-time data auto-scrolls nicely the X and Y axis so that the last point is always visible, but when I pan the plot by touch and I let it go, auto-scrolling stops. How would I re-trigger auto-scrolling?
Thanks a lot!
Greg
Jul 26, 2014 at 2:12 PM
Ok, for question 2 I've found a solution.
I am calling Reset() on both axis 2 seconds after panning stopped.
Question 1 is still up though!

Thanks!
Jul 27, 2014 at 3:30 PM
In fact, real time data doesn't auto-scrolls by default. Its just fitting all data in the same window by modifying the X/Y axis interval.
Jul 28, 2014 at 2:38 PM
Yup there's no auto scrolling built into OxyPlot at all. Every time you add new data to the Points lists on series tied to Axes, and you call InvalidatePlot(true), OxyPlot will recalculate the DataMinimum and DataMaximum values. I implement autoscrolling by comparing the previous and current X data added and panning by that amount.

As for syncing multiple axes when panning or zooming, I posted how I'm handling it here. Might help you figure out how to handle it for your issue.
Jul 28, 2014 at 6:29 PM
Thanks a lot for taking the time to answer!!
I will do as per your post and what you said here!
Thanks again!
Aug 28, 2014 at 10:56 AM
Hello, can you help me? What does it mean "I implement autoscrolling by comparing the previous and current X data added and panning by that amount", can you show me some code?