QWT_How to draw a special label to an axis
Hallo,
i am new to qwt. I want to draw a special scale for an axis.
For example, y_new=log(log(y));
By using setAxisScaleDiv(QwtPlot::yLeft,scdiv ); i have set the scale as i wish,
but in the plot i still want to show y instead of y_new as label. Could someone give me some suggestions? Thanks a lot.
Re: QWT_How to draw a special label to an axis
Guess what you really want to do is to set up a special transformation, see:
- QwtScaleEngine::setTransformation()
- QwtPlot::setAxisScaleEngine()
But if your question is really only about how to modify the tick label on the axis:
- QwtAbstractScaleDraw::label()
- QwtPlot::setAxisScaleDraw()
HTH,
Uwe