plot->setScale(QwtPolar::Azimuth, 360.0, 0.0, 15.0);
plot->setScale(QwtPolar::Azimuth, 360.0, 0.0, 15.0);
To copy to clipboard, switch view to plain text mode
Looking into QwtRoundScaleDraw::drawLabel you can see, that ticks that are mapped to a position >= 360 degree ( 0.0 is mapped to 360 ) are skipped. Unfortunately this is hardcoded.
I'm afraid you need to derive your own type of scale draw:
{
virtual QwtText label
(double value
) const {
}
};
plot->setScaleDraw(QwtPolar::Azimuth, new YourScaleDraw);
class YourScaleDraw: public QwtRoundScaleDraw
{
virtual QwtText label(double value) const
{
return QwtRoundScaleDraw::label(::fmodf(value, 360.0) );
}
};
plot->setScaleDraw(QwtPolar::Azimuth, new YourScaleDraw);
To copy to clipboard, switch view to plain text mode
Uwe
Bookmarks