Bug 152613 - Axes labels not centred when suppressing borders
Summary: Axes labels not centred when suppressing borders
Status: RESOLVED FIXED
Alias: None
Product: kst
Classification: Applications
Component: general (show other bugs)
Version: 1.5.0
Platform: Compiled Sources Linux
: NOR normal
Target Milestone: ---
Assignee: kst
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2007-11-20 22:36 UTC by D. V. Wiebe
Modified: 2007-11-22 01:27 UTC (History)
0 users

See Also:
Latest Commit:
Version Fixed In:
Sentry Crash Report:


Attachments
Example of the bug -- Y label "Altitude" not centred (22.06 KB, image/png)
2007-11-20 22:37 UTC, D. V. Wiebe
Details

Note You need to log in before you can comment on or make changes to this bug.
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