I only added the line after I recognized that autoscale did not work to test if it works if i do it manually.
With "uncomment" i meant removing the "//"
With the line commented out it does no autoscale for me.
My suggestion that autoscale just doesent work with setRawSamples was wrong?
Please help :-)
Last edited by P@u1; 5th July 2011 at 18:34.
I added the line
in the timerEvent and now its working.Qt Code:
curve_.setRawSamples(xData_, yData_, dataSize_);To copy to clipboard, switch view to plain text mode
I didn't know that I need to set the samples again each time I apply changes to the data...
Autoscaling uses the coordinates of the bounding rectangle. The bounding rectangle of the data is internally cached and when you update the samples behind the back of the data object the cached bounding rectangle gets wrong.
Uwe
Bookmarks