Bug 152613

Summary: Axes labels not centred when suppressing borders
Product: [Applications] kst Reporter: D. V. Wiebe <dvw>
Component: generalAssignee: kst
Status: RESOLVED FIXED    
Severity: normal    
Priority: NOR    
Version: 1.5.0   
Target Milestone: ---   
Platform: Compiled Sources   
OS: Linux   
Latest Commit: Version Fixed In:
Sentry Crash Report:
Attachments: Example of the bug -- Y label "Altitude" not centred

Description D. V. Wiebe 2007-11-20 22:36:35 UTC
Version:           1.5.0 (using KDE KDE 3.5.8)
Installed from:    Compiled From Sources
Compiler:          gcc (GCC) 4.1.2 
OS:                Linux

When suppressing only one border, the axis label along the side that gets stretched due to the suppression is no-longer centred with respect to the plot's borders (since it remains centred in the plot object's rectangle, even though the plot itself is no longer centred in it.

When suppressing both borders, of course, this is again no longer an issue.

For example (see attached), if I suppress the top border of a plot, the Y-axis label will appear to be too low, since the label is in the same place as it would have been had the border not been suppressed.
Comment 1 D. V. Wiebe 2007-11-20 22:37:55 UTC
Created attachment 22135 [details]
Example of the bug -- Y label "Altitude" not centred
Comment 2 Andrew Walker 2007-11-22 01:27:14 UTC
SVN commit 739835 by arwalker:

BUG:152613 center axes titles relative to the axes rather than the plot rectangle

 M  +6 -4      kst2dplot.cpp  
 M  +1 -1      kst2dplot.h  


WebSVN link: http://websvn.kde.org/?view=rev&revision=739835