Bug 87988

Summary: Curves sometimes cover up axes ticks
Product: [Applications] kst Reporter: Rick Chern <rchern>
Component: generalAssignee: kst
Status: RESOLVED FIXED    
Severity: wishlist CC: helio
Priority: NOR    
Version: 1.x   
Target Milestone: ---   
Platform: unspecified   
OS: Linux   
Latest Commit: Version Fixed In:

Description Rick Chern 2004-08-25 00:36:41 UTC
Version:           1.0.0_devel (using KDE KDE 3.2.1)
Installed from:    Unlisted Binary Package
OS:                Linux

Sometimes curves in a plot cover up the axes ticks.  Would it be more desireable to have the ticks cover the curves, as the plot can be scrolled to view hidden parts of the curves?
Comment 1 Andrew Walker 2004-08-25 19:48:24 UTC
CVS commit by arwalker: 

Plot the axes after the curves, so that the tickmarks are not covered by any curve.

CCMAIL: 87988-done@bugs.kde.org


  M +5 -7      kst2dplot.cpp   1.252


--- kdeextragear-2/kst/kst/kst2dplot.cpp  #1.251:1.252
@@ -1575,11 +1575,4 @@ void Kst2DPlot::draw(QPainter &p, KstPai
                   YTick, ytop_bdr_px, ybot_bdr_px, y_orig_px, ytick_px, ytick_len_px, y_px);
 
-    //return original pen to painter
-    p.setPen(QPen(_foregroundColor, penWidth));
-
-    plotAxes(p, RelPlotRegion, x_max, y_max, x_min, y_min,
-                        XTick, Xorg, xleft_bdr_px, xright_bdr_px, x_orig_px, xtick_px, xtick_len_px, x_px,
-                        YTick, Yorg, ytop_bdr_px, ybot_bdr_px, y_orig_px, ytick_px, ytick_len_px, y_px);
-
     /*** plot the legend now if its in the background **/
     if (!Legend->getFront()) {
@@ -1590,4 +1583,9 @@ void Kst2DPlot::draw(QPainter &p, KstPai
     plotCurves(p, Lx, Hx, Ly, Hy, m_X, m_Y, b_X, b_Y, penWidth);
 
+    p.setPen(QPen(_foregroundColor, penWidth));
+    plotAxes(p, RelPlotRegion, x_max, y_max, x_min, y_min,
+                        XTick, Xorg, xleft_bdr_px, xright_bdr_px, x_orig_px, xtick_px, xtick_len_px, x_px,
+                        YTick, Yorg, ytop_bdr_px, ybot_bdr_px, y_orig_px, ytick_px, ytick_len_px, y_px);
+
     plotPlotMarkers(p, m_X, b_X, x_max, x_min, y_px, ytop_bdr_px, ybot_bdr_px);
 


Comment 2 Eike Hein 2006-06-26 02:55:19 UTC
*** Bug 94603 has been marked as a duplicate of this bug. ***