| Summary: | Curves sometimes cover up axes ticks | ||
|---|---|---|---|
| Product: | [Applications] kst | Reporter: | Rick Chern <rchern> |
| Component: | general | Assignee: | kst |
| Status: | RESOLVED FIXED | ||
| Severity: | wishlist | CC: | helio |
| Priority: | NOR | ||
| Version First Reported In: | 1.x | ||
| Target Milestone: | --- | ||
| Platform: | unspecified | ||
| OS: | Linux | ||
| Latest Commit: | Version Fixed/Implemented In: | ||
| Sentry Crash Report: | |||
|
Description
Rick Chern
2004-08-25 00:36:41 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); |