Menu

#33 Clipping Error in Step Plots

0.9.10.0
open
nobody
General (25)
5
2009-04-06
2009-04-06
No

The same clipping problem someone stated before applies also to StepPlots. If one point is on the left but outside the screen area and the other on the right but out side the screen area, the chart is not drawn.

I would suggest to change the clipping algorithm in StepPlots.cs to something like:

// do horizontal clipping here, to speed up
if ((p1.X < leftCutoff && p2.X < leftCutoff && p3.X < leftCutoff) ||
(p1.X > rightCutoff && p2.X > rightCutoff && p3.X > rightCutoff ))
{
continue;
}

This works for me.

Discussion


Log in to post a comment.

Want the latest updates on software, tech news, and AI?
Get latest updates about software, tech news, and AI from SourceForge directly in your inbox once a month.