How do you assign data to your plot? If say you have an array with full data which is constantly growing and
from time to time you pass it to curve object. Suppose you have X as a number of seconds from start.
Then every time, after updating data to curve you do
plot->setAxisScale(QwtPlot::xBottom,lastSecondOfData - intervalToDisplayInSeconds , lastSecondOfData );
which will show you last (intervalToDisplayInSeconds) seconds of data, not all of them.
Other way is to use piece of full array(say last several elements), and assign this piece to plot curve, it will be
showing updating data.
Bookmarks