See http://qwtpolar.sourceforge.net/clas...3ecb63ea67aa81 and http://qwtpolar.sourceforge.net/clas...ce0865a71220cb
In your case it would be:
plot->setAzimuthOrigin( M_PI_2 );
plot->setScale( QwtPolar::Azimuth, 2 * M_PI, 0.0, 0.5 * M_PI_2 );
plot->setAzimuthOrigin( M_PI_2 );
plot->setScale( QwtPolar::Azimuth, 2 * M_PI, 0.0, 0.5 * M_PI_2 );
To copy to clipboard, switch view to plain text mode
In SVN trunk the spectrogram example offers buttons for mirroring and rotating ( in steps of 15° ) the azimuth scale:
void Plot::rotate()
{
const double interval = 15.0; // degrees
double origin = azimuthOrigin() / M_PI * 180.0;
origin = qRound( origin / interval ) * interval + interval;
setAzimuthOrigin( origin / 180.0 * M_PI );
replot();
}
void Plot::mirror()
{
const double a1 = scaleDiv( QwtPolar::Azimuth )->upperBound();
const double a2 = scaleDiv( QwtPolar::Azimuth )->lowerBound();
setScale( QwtPolar::Azimuth, a1, a2, qAbs( a2 - a1 ) / 8.0 );
replot();
}
void Plot::rotate()
{
const double interval = 15.0; // degrees
double origin = azimuthOrigin() / M_PI * 180.0;
origin = qRound( origin / interval ) * interval + interval;
setAzimuthOrigin( origin / 180.0 * M_PI );
replot();
}
void Plot::mirror()
{
const double a1 = scaleDiv( QwtPolar::Azimuth )->upperBound();
const double a2 = scaleDiv( QwtPolar::Azimuth )->lowerBound();
setScale( QwtPolar::Azimuth, a1, a2, qAbs( a2 - a1 ) / 8.0 );
replot();
}
To copy to clipboard, switch view to plain text mode
HTH, Uwe
Bookmarks