PDA

View Full Version : Set axis title on the right side



pospiech
13th March 2008, 23:11
I tried to set an extra Title on the right side:


qwtPlot->setAxisTitle(QwtPlot::yLeft, "Gain");
qwtPlot->setAxisTitle(QwtPlot::yRight, "Energy");

I can see however only the axis title on the left side.
Is this code wrong ?

Matthias

Uwe
14th March 2008, 08:26
You also have to enable the axis to the right:
plot->enableAxis(QwtPlot::yRight);

HTH,
Uwe