Hi All,
i am facing the problem while implementing the setCurveAttribute(QwtPlotCurve::Fitted,true) for my curve...
i wanted to create a smooth curve... for that purpose...i just added the curve attribute setCurveAttribute(QwtPlotCurve::Fitted,true)... but the resulting curve is not same with excel created smooth curve(just for comparison)... is there any problem(bug) on setCurveAttribute(QwtPlotCurve::Fitted,true)????
i am here giving my code snippet...
QwtPlotCurve *defaultcurve = new QwtPlotCurve(curveName);
QwtSplineCurveFitter *curveFitter;
defaultcurve->setLegendAttribute(QwtPlotCurve::LegendShowSymbol ,true);
#if QT_VERSION >= 0x040000
defaultcurve->setRenderHint(QwtPlotItem::RenderAntialiased);
#endif
pen.setColor(clr);
QwtSymbol *symbol = new QwtSymbol(QwtSymbol::Ellipse, Qt::NoBrush,QPen(clr), QSize(4,4));
defaultcurve->setSymbol(symbol);
defaultcurve->setPen(pen);
defaultcurve->setStyle(QwtPlotCurve::Lines);
defaultcurve->setCurveAttribute(QwtPlotCurve::Fitted,true);
curveFitter = new QwtSplineCurveFitter();
defaultcurve->setCurveFitter(curveFitter);
defaultcurve->attach(this);
defaultcurve->setRawSamples(x, y, default_points);
please check with the attached images...
i have just created the same curve plots in Excel....for comparison purpose...
qwt plot curve as well as Excel plot curves are same if we use the straight lines...
but if we want to smooth the curve... then there is a difference in qwt plot curve and excel plot curves..
can any one please help me????????
Added after 1 36 minutes:
Hi ,
one thing i missed in my previous thread...
i am using qwt-6.0.0-rc5 and Qt 4.7.0 with Qt-creator2.0.1....
can any one please help me????????
Bookmarks