[Kst] extragear/graphics/kst/kst
Rick Chern
rchern at interchange.ubc.ca
Wed Jun 22 19:04:38 CEST 2005
SVN commit 428003 by rchern:
Increase range a little bit when doing local y zoom max to be consistent with y autoscale mode
M +15 -0 kst2dplot.cpp
--- trunk/extragear/graphics/kst/kst/kst2dplot.cpp #428002:428003
@@ -5138,6 +5138,21 @@
newYMin = pow(10.0, -350.0);
}
+ // just like AUTOBORDER, add a little bit to top and bottom
+ if (_yLog) {
+ newYMin = log10(newYMin);
+ newYMax = (newYMax > 0) ? log10(newYMax): 0;
+ double dy = (newYMax-newYMin)/40.0;
+ newYMax += dy;
+ newYMin -= dy;
+ newYMax = pow(10.0, newYMax);
+ newYMin = pow(10.0, newYMin);
+ } else {
+ double dy = (newYMax-newYMin)/40.0;
+ newYMax += dy;
+ newYMin -= dy;
+ }
+
YMin = newYMin;
YMax = newYMax;
setYScaleMode(FIXED);
More information about the Kst
mailing list