Hi,
I am having some difficulties drawing multiple lines on my polar plot. I can create multiple qwtpolarmarkers on the plot but when I create a line of type qwtpolarcurve and attach it to the polar plot, only the last curve will be displayed.
pseudo code to illustrate:
QwtPolarMarker * polarmarker = new QwtPolarMarker();
polarmarker->setPosition(......);
polarmarker->attach(polarPlot);
polarPlot->replot(); //1st marker is displayed
QwtPolarMarker * polarmarker2 = new QwtPolarMarker();
polarmarker2->setPosition(......);
polarmarker2->attach(polarPlot);
polarPlot->replot(); //2nd marker is displayed
QwtPolarCurve * curve = new QwtPolarCurve();
curve->setData(......);
curve->attach(polarPlot);
polarPlot->replot(); // 1st line is displayed
QwtPolarCurve * curve2 = new QwtPolarCurve();
curve2->setData(......);
curve2->attach(polarPlot);
polarPlot->replot(); // 2nd line is displayed, 1st line disappears
QwtPolarMarker * polarmarker = new QwtPolarMarker();
polarmarker->setPosition(......);
polarmarker->attach(polarPlot);
polarPlot->replot(); //1st marker is displayed
QwtPolarMarker * polarmarker2 = new QwtPolarMarker();
polarmarker2->setPosition(......);
polarmarker2->attach(polarPlot);
polarPlot->replot(); //2nd marker is displayed
QwtPolarCurve * curve = new QwtPolarCurve();
curve->setData(......);
curve->attach(polarPlot);
polarPlot->replot(); // 1st line is displayed
QwtPolarCurve * curve2 = new QwtPolarCurve();
curve2->setData(......);
curve2->attach(polarPlot);
polarPlot->replot(); // 2nd line is displayed, 1st line disappears
To copy to clipboard, switch view to plain text mode
I stepped through the codes and I can see that the 1st curve is plotted before disappearing on the last replot call. Any ideas on what I might be missing?
Bookmarks