示例#1
0
        public void ExecuteRecipe(Plot plt)
        {
            // display some sample data
            plt.AddSignal(DataGen.Sin(51));
            plt.AddSignal(DataGen.Cos(51));

            // display an image with 3 different alignments
            Bitmap monaLisa = DataGen.SampleImage();
            var    ip1      = new ScottPlot.Plottable.Image()
            {
                Bitmap = monaLisa, X = 10
            };
            var ip2 = new ScottPlot.Plottable.Image()
            {
                Bitmap = monaLisa, X = 25, Alignment = Alignment.MiddleCenter
            };
            var ip3 = new ScottPlot.Plottable.Image()
            {
                Bitmap = monaLisa, X = 40, Alignment = Alignment.LowerRight
            };

            plt.Add(ip1);
            plt.Add(ip2);
            plt.Add(ip3);

            plt.AddPoint(ip1.X, ip1.Y, Color.Magenta, size: 20);
            plt.AddPoint(ip2.X, ip2.Y, Color.Magenta, size: 20);
            plt.AddPoint(ip3.X, ip3.Y, Color.Magenta, size: 20);
        }
示例#2
0
        public void ExecuteRecipe(Plot plt)
        {
            // display some sample data
            plt.AddSignal(DataGen.Sin(51));
            plt.AddSignal(DataGen.Cos(51));

            // place a rotated image on the plot
            Bitmap monaLisa = DataGen.SampleImage();
            var    ip1      = new ScottPlot.Plottable.Image()
            {
                Bitmap = monaLisa, X = 10, Y = .5, Rotation = 30
            };

            plt.Add(ip1);
            plt.AddPoint(ip1.X, ip1.Y, color: Color.Magenta, size: 20);
        }
示例#3
0
        public void ExecuteRecipe(Plot plt)
        {
            // display some sample data
            plt.AddSignal(DataGen.Sin(51));
            plt.AddSignal(DataGen.Cos(51));

            // create the bitmap we want to display
            Bitmap monaLisa = DataGen.SampleImage();

            // create the image plottable and add it to the plot
            var imagePlot = new ScottPlot.Plottable.Image()
            {
                Bitmap = monaLisa, X = 10, Y = .5
            };

            plt.Add(imagePlot);
        }