[Kalzium] KDE/kdeedu/kalzium/src
Jason Harris
kstars at 30doradus.org
Sun Oct 29 22:29:40 CET 2006
SVN commit 600210 by harris:
Add some padding to limits of the plot so that o data points
get cropped by the axes.
CCMAIL: kalzium at kde.org
M +8 -0 elementdataviewer.cpp
--- trunk/KDE/kdeedu/kalzium/src/elementdataviewer.cpp #600209:600210
@@ -117,6 +117,14 @@
kDebug() << x1 << " :: " << x2 << " ----- " << y1 << " :: " << y2 << endl;
+ //JH: add some padding to show all points
+ double dx = 0.05*(x2-x1);
+ double dy = 0.05*(y2-y1);
+ x1 -= dx;
+ x2 += dx;
+ y1 -= dy;
+ y2 += dy;
+
//X // try to put a small padding to make the points on the axis visible
//X double dx = ( to - from + 1 ) / 25 + 1.0;
//X double dy = ( maxY - minY ) / 10.0;
More information about the Kalzium
mailing list