small modification that checks input data and does nothing in case of NaN/Inf when drawing single point. this prevents a possible stackOverflow exception from system drawing.
whopsi, i might add, the relevant file is: \src\LinePlot.cs line 109, just below PointF physical = t.Transform( data[0] ); add if (float.IsNaN(physical.X) || float.IsInfinity(physical.X) || float.IsNaN(physical.Y) || float.IsInfinity(physical.Y)) { return; }
Log in to post a comment.
whopsi, i might add, the relevant file is:
\src\LinePlot.cs
line 109, just below PointF physical = t.Transform( data[0] );
add
if (float.IsNaN(physical.X) || float.IsInfinity(physical.X) || float.IsNaN(physical.Y) || float.IsInfinity(physical.Y))
{
return;
}