Profile Picture

HeatMap problems when values pass 0

Posted By Lennart Bossér 7 Years Ago
Author
Message
Lennart Bossér
Problem Posted 7 Years Ago
View Quick Profile
Forum Newbie

Forum Newbie (0 reputation)Forum Newbie (0 reputation)Forum Newbie (0 reputation)Forum Newbie (0 reputation)Forum Newbie (0 reputation)Forum Newbie (0 reputation)Forum Newbie (0 reputation)Forum Newbie (0 reputation)Forum Newbie (0 reputation)

Group: Forum Members
Last Active: 7 Years Ago
Posts: 5, Visits: 37
Hello,
There seems to be some instability which leads to strange behaviour when the values in a NHeatMapSeries has both positive and negative values.
example from the Nevron example code in NHeatMapContourUC.xaml.cs lines 113 - 121


Original code (Works)

                for (int row = 0; row < GridStepY; row++, x += dIncrementX)
                {
                    y = 10 - Math.Sqrt((x * x) + (z * z) + 2);
                    y += 3.0 * Math.Sin(x) * Math.Cos(z);

                    double value = y;

                    data.SetValue(row, col, value);
                }


Slightly altered code (Fails). Note change in line 3 below

               for (int row = 0; row < GridStepY; row++, x += dIncrementX)
                {
                    y = 1 - Math.Sqrt((x * x) + (z * z) + 2);
                    y += 3.0 * Math.Sin(x) * Math.Cos(z);

                    double value = y;

                    data.SetValue(row, col, value);
                }


Best regards,
Lennart









Similar Topics


Reading This Topic