Bug 89437

Summary: Axis values display strangely
Product: [Applications] kst Reporter: George Staikos <staikos>
Component: generalAssignee: kst
Status: RESOLVED FIXED    
Severity: normal    
Priority: NOR    
Version: 1.x   
Target Milestone: ---   
Platform: Compiled Sources   
OS: Linux   
Latest Commit: Version Fixed In:
Attachments: demonstration

Description George Staikos 2004-09-13 21:01:56 UTC
Sometime in the recent past axis values started displaying strangely.  They are 
touching the axis line now, and not centered around the point that they 
represent.  It definitely doesn't look as nice, and it's sometimes hard to tell 
which point is actually represented.
Comment 1 Andrew Walker 2004-09-14 18:12:50 UTC
Could you submit some more details, as I am unable to reproduce this. Are you talking about the x-axis or y-axis, with rotation or without, what is your data range, etc
Comment 2 George Staikos 2004-09-14 18:21:31 UTC
Created attachment 7526 [details]
demonstration

The 40000 is not directly underneath the tick mark in the first plot, for
instance, and the numbers are touching the axis line.
Comment 3 Netterfield 2004-09-14 18:43:22 UTC
As a note: I Saw the effect on George's computer, but not on mine...

Comment 4 Andrew Walker 2004-09-14 19:46:32 UTC
CVS commit by arwalker: 

Ensure old ticklabel settings are updated properly.
Remove obsolete code.

CCMAIL: 89437-done@bugs.kde.org


  M +1 -2      kst2dplot.cpp   1.265


--- kdeextragear-2/kst/kst/kst2dplot.cpp  #1.264:1.265
@@ -175,4 +175,5 @@ Kst2DPlot::Kst2DPlot(QDomElement& e)
         in_xticklabel = new KstLabel(" ");
         in_xticklabel->read(el);
+        in_xticklabel->setJustification(CxTy);
         in_yticklabel = new KstLabel(" ");
         in_yticklabel->read(el);
@@ -4818,5 +4819,4 @@ void Kst2DPlot::plotAxes(QPainter& p, QR
     XFullTickLabel->setText(labelList[0]);
     XFullTickLabel->draw(p, d2i(xleft_bdr_px), y_px-(XLabel->lineSpacing(p) - XLabel->ascent(p))/2);
-    //XFullTickLabel->draw(p, x_px/2, y_px-XLabel->lineSpacing(p)-(XFullTickLabel->lineSpacing(p) - XFullTickLabel->ascent(p))/2);
     labelList.pop_front();
   }
@@ -4841,5 +4841,4 @@ void Kst2DPlot::plotAxes(QPainter& p, QR
     YFullTickLabel->setText(labelList[0]);
     YFullTickLabel->draw(p, (YLabel->lineSpacing(p) - YLabel->ascent(p))/2, d2i(y_px - ybot_bdr_px));
-//    YFullTickLabel->draw(p, (YFullTickLabel->lineSpacing(p) - YFullTickLabel->ascent(p))/2 + YLabel->lineSpacing(p), y_px/2);
     labelList.pop_front();
   }