Hello,

My purpose is to show a graphical representation of a RAW data from a 3-axis accelerometer. For this, I read the RAW data file and get the information into a typedef structure. This raw data is downsampled to 1 sample per second for handle it in a fast way.

The goal is to show a period of time requiered from a main window, and animate this plot with a vertical bar, for play like in real time, in order to follow the data showed.

For this I need to plot a specific period of time and label it as well.

I could do it, but I found several problems. I really would appreciate if somebody can help me, even with just one of them....

1. Y-Axis. When I plot, the scale in the y-axis is not correct, it doesn't appear anything until i move the mouse wheel (zoom). With just moving the zoom, it is looking correct in the y-axis.

inicial.jpeg


2. X-Axis. I have to plot information of a period of time (ex, from 1pm to 2pm). After plotting, it is not exactly correct. It shows like from 1:05 to 1:55, and I need to zoom out one time for the correct adjustment.

acc1.jpeg

acc1_correcto.jpeg

3. After closing one window with the plot, and trying to plot a different period of time, in the legend, appears the new and the old functions for plotting... and they don't work well, I mean, if I tick one of them, disappears part of the function, not all of it.

legend_problem.jpeg

4. When I can solve the problems above, I would like to animate it with a vertical bar, any suggestion about it?

Thanks in advance!