Exemplo n.º 1
0
        public void Test_Fill_AboveBelow()
        {
            Random rand = new Random(0);
            var    ys   = ScottPlot.DataGen.RandomWalk(rand, 1000, offset: -10);
            var    xs   = ScottPlot.DataGen.Consecutive(ys.Length, spacing: 0.025);

            var plt = new ScottPlot.Plot(400, 300);

            plt.AddFillAboveAndBelow(xs, ys);
            plt.Legend(location: ScottPlot.Alignment.LowerLeft);
            plt.AxisAuto(0);

            TestTools.SaveFig(plt);
        }