[Kst] kdeextragear-2/kst/kst

Rick Chern rchern at interchange.ubc.ca
Mon Aug 23 19:53:24 CEST 2004


CVS commit by rchern: 

Attempt to reduce number of auto minor ticks (or turn off completely) in log mode if they are too close together


  M +8 -0      kst2dplot.cpp   1.243


--- kdeextragear-2/kst/kst/kst2dplot.cpp  #1.242:1.243
@@ -1885,4 +1885,12 @@ void Kst2DPlot::setTicks(double& tick, d
   }
 
+  if (is_log) {
+    if (max - min > 50.0) {
+      auto_tick = 1;
+    } else if (max - min > 20.0) {
+      auto_tick /= 2;
+    }
+  }
+
   if (isX) {
     _xMinorTicks = auto_tick; //_reqXMinorTicks;





More information about the Kst mailing list