Real time data and panning problem
This discussion was imported from CodePlex
Greg767 wrote at 2014-07-26 15:45:
Hi,
I am using the Xamarin iOS component and have two plots that get real time data and I have two small issues.
Greg
I am using the Xamarin iOS component and have two plots that get real time data and I have two small issues.
- 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?
- 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?
Greg
Greg767 wrote at 2014-07-26 16:12:
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!
I am calling Reset() on both axis 2 seconds after panning stopped.
Question 1 is still up though!
Thanks!
Greg767 wrote at 2014-07-27 17:30:
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.
Slxe wrote at 2014-07-28 16:38:
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.
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.
Greg767 wrote at 2014-07-28 20:29:
Thanks a lot for taking the time to answer!!
I will do as per your post and what you said here!
Thanks again!
I will do as per your post and what you said here!
Thanks again!
Customer support service by UserEcho