The ellipse with an odd side looks ok by itself. But if I put a circle with an odd size in a circe with an even size there is a problem that the inner circle looks asymmetrical:
legend3.png
sym1->setSize(14);
sym1
->setPen
(QColor(Qt
::blue));
_curve1.setSymbol(sym1);
_curve1.attach(this);
_curve2.setSymbol(sym2);
_curve2.attach(this);
for (unsigned i = 0; i < 10; ++i)
{
x.push_back(i);
}
_curve1.setSamples(x, x);
_curve2.setSamples(x, x);
QwtSymbol *sym1 = new QwtSymbol(QwtSymbol::Ellipse);
sym1->setSize(14);
sym1->setPen(QColor(Qt::blue));
_curve1.setSymbol(sym1);
_curve1.setStyle(QwtPlotCurve::NoCurve);
_curve1.attach(this);
QwtSymbol *sym2 = new QwtSymbol(QwtSymbol::Ellipse, Qt::black, QColor(Qt::black), QSize(7, 7));
_curve2.setSymbol(sym2);
_curve2.setStyle(QwtPlotCurve::NoCurve);
_curve2.attach(this);
QVector <double> x;
for (unsigned i = 0; i < 10; ++i)
{
x.push_back(i);
}
_curve1.setSamples(x, x);
_curve2.setSamples(x, x);
To copy to clipboard, switch view to plain text mode
Bookmarks