实时XY图X轴更新 [英] RealTime XY Plot X-Axis update
问题描述
我使用的是从AndroidPlot库实时方向传感器情节演示。我怎样才能让域X轴的值更新时,图中滚动?
I'm using the Realtime Orientation Sensor Plot demo from the AndroidPlot library. How can I make the Domain x-axis values update when the graph scrolls?
推荐答案
滚动并在Androidplot DemoApp放大的例子就是这样 - <一个href=\"https://bitbucket.org/androidplot/androidplot/src/d90fc9fe7705a3f82fe44406cd28a34d9169e056/Examples/DemoApp/src/com/androidplot/demos/TouchZoomExampleActivity.java?at=master\"相对=nofollow>这里是到源的链接。特别是看看<一个href=\"https://bitbucket.org/androidplot/androidplot/src/d90fc9fe7705a3f82fe44406cd28a34d9169e056/Examples/DemoApp/src/com/androidplot/demos/TouchZoomExampleActivity.java?at=master#cl-153\"相对=nofollow>#线153 ;这也正是在那里滚动处理。
The scroll and zoom example in the Androidplot DemoApp does this - here's a link to the source. In particular take a look at Line #153; that's where the where scrolling is handled.
这篇关于实时XY图X轴更新的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!