Bug 190050

Summary: Make it possible to set the font of the axis labels in a KPlotWidget
Product: [Frameworks and Libraries] frameworks-kplotting Reporter: Job Noorman <job>
Component: generalAssignee: Christoph Feck <cfeck>
Status: REPORTED ---    
Severity: wishlist CC: kdelibs-bugs
Priority: NOR    
Version: unspecified   
Target Milestone: ---   
Platform: Ubuntu   
OS: Linux   
Latest Commit: Version Fixed In:

Description Job Noorman 2009-04-19 12:28:16 UTC
Version:            (using KDE 4.2.2)
OS:                Linux
Installed from:    Ubuntu Packages

I would like to be able to chose the font that is used to draw the labels of axes in a KPlotWidget. ATM, the font is really small and I can't find a way to change this.

I found the following code in KPlotWidget::drawAxes:

00715     //set small font for tick labels
00716     QFont f = p->font();
00717     int s = f.pointSize();
00718     f.setPointSize( s - 2 );
00719     p->setFont( f );

So the font size is decreased to draw the tick labels but after this, it is never increased again to draw the axis labels. Is this a bug?

Cheers!
Job