Quantcast
Channel: OxyPlot (moved to GitHub)
Viewing all articles
Browse latest Browse all 2061

New Post: Heatmap changed with latest version

$
0
0
When I was creating a test model for you I saw that using start- and endposition was enough for the right result (in the latest version), but in version 139 and before I had to load the peak data the other way around. (much more code) With the latest version the following routine is doing the whole fill:
        for (int iRow = 0; iRow <= iMaxArrayIndex; iRow++)
                {
                    this.listScheefstand.Add(new DataPoint((int)(dataTableVormData.Rows[iRow]["length"]),
                        Math.Abs((int)(dataTableVormData.Rows[iRow]["flatn_error_steer"]) - MiddelsteBedekteRotor)));
                    meters[iRow] = (int)dataTableVormData.Rows[iRow]["length"];

                    for (int iMeting = iLeftsensorPLUSsideOffset; iMeting <= iRightsensorMINsideOffset; iMeting++) // sensors
                    {
                        if ((string)(dataTableVormData.Rows[iRow]["SS" + iMeting.ToString().PadLeft(2, '0')]) != "U")
                        {
                            // Covered
                            peaksData[iRow, iRightsensorMINsideOffset - (iMeting - 1)] =
                                (int)dataTableVormData.Rows[iRow]["SD" + iMeting.ToString().PadLeft(2, '0')];
                        }
                    }
            }
Thanks for your help objo.

Viewing all articles
Browse latest Browse all 2061


<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>