[Kst] Displaying a huge number of points

Janvrot janvrot at gmail.com
Fri Mar 1 02:08:46 UTC 2013


Hello

I took some time to read the code for version 2.0.6 and I noticed that
*curve.cpp *has, near line 1221

       if (rect.contains(pt) && pt != lastPt &&
            (lastPt.isNull() || (abs(pt.x() - lastPt.x()) > size))) { // ||
(abs(pt.y() - lastPt.y()) > size))) {
            // select point to be ploted

When working with scatter charts, just points no lines, size ==0. This
prevents plotting of points with the same X, but with different Y, which is
desirable.
When      
      if (hasLines() && pointDensity() != 0) {
            // size is computed as a number between 15 and 139, according to
dialog density setting,

So if we substitute *>* for *>=* on the above comparison everybody will be
happy, I guess.
      if (rect.contains(pt) && pt != lastPt &&
            (lastPt.isNull() || (abs(pt.x() - lastPt.x()) *>=* size))) { //
|| (abs(pt.y() - lastPt.y()) > size))) {

Did I get it right or there is a problem that I could not perceive?

Regards
Janvrot

 



--
View this message in context: http://kde.6490.n7.nabble.com/Displaying-a-huge-number-of-points-tp1521466p1521807.html
Sent from the kst mailing list archive at Nabble.com.


More information about the Kst mailing list