From: SourceForge.net <no...@so...> - 2008-11-19 19:54:33
|
Bugs item #2315633, was opened at 2008-11-19 19:54 Message generated for change (Tracker Item Submitted) made by Item Submitter You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=821568&aid=2315633&group_id=161868 Please note that this message will contain a full copy of the comment thread, including the initial issue submission, for this request, not just the latest update. Category: None Group: 0.9.10.0 Status: Open Resolution: None Priority: 5 Private: No Submitted By: Nobody/Anonymous (nobody) Assigned to: Nobody/Anonymous (nobody) Summary: Improved Clipping Alogorithm Initial Comment: When you zoom in so that the graph does not contain any points, nothing is drawn. However if you zoom in to one point the lines are drawn to the points outside the GDI's clipping region. In the LinePlot.cs file I found the following code: // do horizontal clipping here, to speed up if ((dx1 < leftCutoff || rightCutoff < dx1) && (dx2 < leftCutoff || rightCutoff < dx2)) { continue; } This code does not draw any lines if one point is on the left and the other is on the right. In this case you would want the line to be drawn. Here is an update to that clipping code that takes into account that scenario: if (dx1 < leftCutoff && dx2 < leftCutoff) { // Both points are to the left of the clipping region. continue; } else if (dx1 > rightCutoff && dx2 > rightCutoff) { // Both points are to the right of the clipping region. continue; } If you have further questions, please feel free to contact me. Bob Cravens (bob...@gm...) ---------------------------------------------------------------------- You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=821568&aid=2315633&group_id=161868 |