Exemplo n.º 1
0
        public void ExecuteRecipe(Plot plt)
        {
            int    pointCount = 20;
            Random rand       = new Random(0);

            double[] xs   = DataGen.Consecutive(pointCount);
            double[] ys   = DataGen.RandomWalk(rand, pointCount, 2.0);
            double[] yErr = DataGen.Random(rand, pointCount, 1.0, 1.0);

            plt.AddScatter(xs, ys, Color.Blue);
            plt.AddFillError(xs, ys, yErr, Color.FromArgb(50, Color.Blue));
        }