Hallo,
i have a 2D-Plot with two y-axis and would like to have the axis-text in the same direction for both axis'.
I thought to do this with method:
plot->setAxisLabelRotation (QwtPlot::yRight, rotationInDegree);
But this didn't work. I also tried it with different values for rotationInDegree.
Whats the problem?
That's my code until now:
plot = new Plot();
plot->enableAxis(QwtPlot::yRight, true);
QFont axisTextFont;
axisTextFont.setBold(true);
axisTextFont.setPixelSize(14);
QwtText rightAxisText(QString("rechts"));
rightAxisText.setColor(Qt::red);
rightAxisText.setFont(axisTextFont);
plot->setAxisTitle(QwtPlot::yRight, rightAxisText);
plot->setAxisLabelRotation (QwtPlot::yRight, -180.0);
plot->replot();
thanks a lot for your help
oldman
Bookmarks