Hi All,
I would like to change the font size of the x axis tick label in the exmaple of "friedberg".
Any suggestion or advice would be really appreciated.
Hi All,
I would like to change the font size of the x axis tick label in the exmaple of "friedberg".
Any suggestion or advice would be really appreciated.
Use void QwtPlot::setAxisFont ( int axisId,const QFont & f ) to set axis font.
For different labels use your own QwtScaleDraw.
1. Inherit from QwtScaleDraw and overload the virtual function QwtText QwtScaleDraw::label(double v) const
2. Return the label with the type of font, size etc. from the function.
3. Use QwtPlot::setAxisScaleDraw to set the scale for the axis in Qwtplot inherited class constructor.
junhonguk (26th April 2012)
Bookmarks