PawelTroka / Computator.NET

Computator.NET is a special kind of numerical software that is fast and easy to use but not worse than others feature-wise. It's features include: - Real and complex functions charts - Real and complex calculator - Real functions numerical calculations including different methods - Over 107 Elementary functions - Over 141 Special functions - Over 21 Matrix functions and operations - Scripting language with power to easy computations including matrices - You can declare your own custom functions with scripting language
GNU General Public License v3.0
233 stars 51 forks source link

Chart2D control with 'FastLine' option throws System.OverflowException: Overflow error for big differences between chart area values #5

Closed PawelTroka closed 6 years ago

PawelTroka commented 8 years ago

Reproduction Input: FastLine; f(x)=x; x0=-5·10⁻⁷; xN=5·10⁷; y0=-3·10⁻⁷; yN=3·10⁻⁷

With FastLine for some parameters, probably because of the fact that GDI+ has hard bounds for drawing coordinates for DrawLine method.

    System.OverflowException: Overflow error.
       at System.Drawing.Graphics.CheckErrorStatus(Int32 status)
       at System.Drawing.Graphics.DrawLine(Pen pen, Single x1, Single y1, Single x2, Single y2)
       at System.Windows.Forms.DataVisualization.Charting.ChartTypes.FastLineChart.DrawLine
PawelTroka commented 8 years ago

Half resolved by not using FastLine with commit 775b49c71278c9e1c84164ec5eaab53bcff04b86.

PawelTroka commented 6 years ago

Since we don't have any problems with it recently and we are not using FastLine option anymore, I am closing this one.