The problem should be related to the polygon clipping, that is enabled by default. As the cutting point between curve and canvas replaces the previous point you get a different polynomial.
If I'm right you should be able to work around this problem by:
Could you please modify the code in QwtPlotCurve:: drawLines, so that the fitting is done before the spline interpolation ?Qt Code:
To copy to clipboard, switch view to plain text mode
However a proper fix is not so easy as this reordering results in ( potentially many ) more points that go into both algos and could be a real performance issue for QwtWeedingCurveFitter.
Uwe
Bookmarks