Download

This class can be used to plot dynamically changing data such as Sensor data on Android. It can be used as part of a more complex View and it automatically takes care of the screen parameters.

Constructor: plotDynamic(Context context)

Public method addData(float) can be used to add the next data point to be plotted. invalidate() forces the replotting of the canvas. Method clearData() clears up the canvas. When the number of points to be plotted exceeds the available screen space the initial values are removed. This results in a plot which appears to move to the left with the new values being added to the right.