Beispiel #1
0
        public string Figure_31_Signal_With_Antialiasing_Off()
        {
            string name     = System.Reflection.MethodBase.GetCurrentMethod().Name.Replace("Figure_", "");
            string fileName = System.IO.Path.GetFullPath($"{outputFolderName}/{name}.png");

            // A slight performance enhancement is achieved when anti-aliasing is disabled
            var plt = new ScottPlot.Plot(width, height);

            plt.Benchmark();
            plt.AntiAlias(true, false);
            plt.PlotSignal(dataSignal, sampleRate: 20_000);
            plt.SaveFig(fileName);
            Console.WriteLine($"Saved: {System.IO.Path.GetFileName(fileName)}");
            return(name + ":" + ScottPlot.Tools.BitmapHash(plt.GetBitmap()));
        }