Summary: | Tick intervals incorrect when using re-interpreted time units. | ||
---|---|---|---|
Product: | [Applications] kst | Reporter: | Netterfield <netterfield> |
Component: | general | Assignee: | Netterfield <netterfield> |
Status: | RESOLVED FIXED | ||
Severity: | normal | ||
Priority: | NOR | ||
Version: | 1.x | ||
Target Milestone: | --- | ||
Platform: | unspecified | ||
OS: | Linux | ||
Latest Commit: | Version Fixed In: | ||
Sentry Crash Report: |
Description
Netterfield
2004-10-26 18:13:49 UTC
This is essentially the same problem when using log-mode on an axis, which has always been present. Is this also something that we want to fix? I think the time thing should be fixed. I want to take a crack at it myself if that's ok.... What is the log mode issue to which you refer? The problem where the range is too small for log mode to make sense, so it reverts to something silly, or are you refering to something else? cbn On October 26, 2004 01:14 pm, Andrew Walker wrote: > ------- You are receiving this mail because: ------- > You are the assignee for the bug, or are watching the assignee. > > http://bugs.kde.org/show_bug.cgi?id=92145 > > > > > ------- Additional Comments From arwalker sumusltd com 2004-10-26 19:14 > ------- This is essentially the same problem when using log-mode on an > axis, which has always been present. Is this also something that we want to > fix? _______________________________________________ > Kst mailing list > Kst@kde.org > https://mail.kde.org/mailman/listinfo/kst CVS commit by netterfield: BUG: 92145 M +14 -13 kst2dplot.cpp 1.296 --- kdeextragear-2/kst/kst/kst2dplot.cpp #1.295:1.296 @@ -1513,15 +1513,4 @@ void Kst2DPlot::genAxisTickLabels(QPaint int i; - tp.maxWidth = 0.0; - tp.maxHeight = 0.0; - tp.labels.clear(); - tp.delta = false; - - setTicks(tp.tick, tp.org, Max, Min, bLog, isX); - - tp.iLo = (int)((Min-tp.org)/tp.tick); - tp.iHi = (int)((Max-tp.org)/tp.tick)+1; - iShort = tp.iLo; - if (isX && _isXAxisInterpreted) { double range; @@ -1591,4 +1580,18 @@ void Kst2DPlot::genAxisTickLabels(QPaint } + tp.maxWidth = 0.0; + tp.maxHeight = 0.0; + tp.labels.clear(); + tp.delta = false; + + setTicks(tp.tick, tp.org, Max*scale, Min*scale, bLog, isX); + tp.tick/=scale; + tp.org/=scale; + + tp.iLo = (int)((Min-tp.org)/tp.tick); + tp.iHi = (int)((Max-tp.org)/tp.tick)+1; + iShort = tp.iLo; + + // // determine the values, and determine @@ -1667,6 +1670,4 @@ void Kst2DPlot::internalAlignment(QRect& updateScale(); getLScale(x_min, y_min, x_max, y_max); - //setTicks(XTick, Xorg, x_max, x_min, _xLog, true); - //setTicks(YTick, Yorg, y_max, y_min, _yLog, false); setBorders(xleft_bdr_px, xright_bdr_px, ytop_bdr_px, ybot_bdr_px, tpx, tpy, p, offsetX, offsetY); |