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

New Post: Draw annotation with 3600*10 datapoints

$
0
0
Modified Performance Example in sample examples, found it is hard to handle random data.
Instead of drawing sin cos data, I tested with Random data.

In Example_Browser->PerformanceExamples.cs
Plot freeze.

I believe it is WPF's limit.
private static void AddPoints(IList<IDataPoint> points, int n)
        {
            //for (int i = 0; i < n; i++)
            //{
            //    double x = Math.PI * 10 * i / (n - 1);
            //    points.Add(new DataPoint(x * Math.Cos(x), x * Math.Sin(x)));
            //}

            int dataCounts=n;
            var rnd = new Random();
            for (int i = 0; i < dataCounts; i++) {
                var dp = new DataPoint(i, rnd.Next(0, 65000));
                points.Add(dp);
            }

        }

Viewing all articles
Browse latest Browse all 2061

Trending Articles



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