[Kst] extragear/graphics/kst/src/libkstmath

Barth Netterfield netterfield at astro.utoronto.ca
Fri Mar 2 14:52:50 CET 2007


SVN commit 638566 by netterfield:

Make log Y axis work with images (eg, spectrograms).

MinPos is the lowest pixel >0, and is used by
log plots... This is closer to what we want.


 M  +2 -2      kstimage.cpp  


--- trunk/extragear/graphics/kst/src/libkstmath/kstimage.cpp #638565:638566
@@ -228,8 +228,8 @@
       _ns_minx = MinX;
       _ns_maxy = MaxY;
       _ns_miny = MinY;
-      MinPosY = MinY > 0 ? MinY : 0;
-      MinPosX = MinX > 0 ? MinX : 0;
+      MinPosY = MinY > 0 ? MinY : yStepSize;
+      MinPosX = MinX > 0 ? MinX : xStepSize;
       
       
       //recalculate the thresholds if necessary


More information about the Kst mailing list