From: Jamie M. <ja...@sc...> - 2008-11-19 20:33:32
|
> > 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...) > Hi Bob, Thanks for your post. One quick question... Did you check the code that is currently in trunk? This problem sounds quite familiar to me and I think I've already made a fix in the trunk version. Time to get a new version out so we don't duplicate work. Cheers, Jamie ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ Jamie McQuay Scimatic Software Inc. +1.416.529.9069 www.scimatic.com We build software for scientists. |