コード例 #1
0
ファイル: Radar.cs プロジェクト: yongmingxia/ScottPlot
        public void ExecuteRecipe(Plot plt)
        {
            double[,] values =
            {
                { 5, 3, 10, 15, 3, 2, 256 },
                { 5, 2, 10, 10, 1, 4, 252 },
            };

            double[] maxValues = { 13, 15, 17, 15, 10, 10, 413 };

            var radar = plt.AddRadar(values, independentAxes: true, maxValues: maxValues);

            radar.CategoryLabels = new string[] { "Wins", "Poles", "Podiums", "Points Finishes", "DNFs", "Fastest Laps", "Points" };
            radar.GroupLabels    = new string[] { "Sebastian Vettel", "Fernando Alonso" };

            // customize the plot
            plt.Title("2010 Formula One World Championship");
            plt.Legend();

            /* Data represents the 2010 Formula One World Championship
             * https://en.wikipedia.org/wiki/2010_Formula_One_World_Championship
             * Note: Alonso did not finish (DNF) in the Malaysian GP, but was included
             * here because he completed >90% of the race distance.
             *
             * Max values are based on https://en.wikipedia.org/wiki/List_of_Formula_One_World_Drivers%27_Champions.
             */
        }
コード例 #2
0
        public void ExecuteRecipe(Plot plt)
        {
            double[,] values =
            {
                { 5, 3, 10, 15, 3, 2 },
                { 5, 2, 10, 10, 1, 4 },
            };

            var radar = plt.AddRadar(values);

            radar.HatchOptions = new HatchOptions[]
            {
                new() { Pattern = HatchStyle.StripedUpwardDiagonal, Color = Color.FromArgb(100, Color.Gray) },
                new() { Pattern = HatchStyle.StripedDownwardDiagonal, Color = Color.FromArgb(100, Color.Gray) },
            };

            radar.GroupLabels = new string[] { "Sebastian Vettel", "Fernando Alonso" };
            plt.Title("2010 Formula One World Championship");
            plt.Legend();

            /* Data represents the 2010 Formula One World Championship
             * https://en.wikipedia.org/wiki/2010_Formula_One_World_Championship
             * Note: Alonso did not finish (DNF) in the Malaysian GP, but was included
             * here because he completed >90% of the race distance.
             */
        }
コード例 #3
0
ファイル: Radar.cs プロジェクト: yongmingxia/ScottPlot
        public void ExecuteRecipe(Plot plt)
        {
            double[,] values =
            {
                {  78, 83, 84, 76, 43 },
                { 100, 50, 70, 60, 90 }
            };

            var radarPlot = plt.AddRadar(values);

            radarPlot.AxisType = RadarAxis.Polygon;
        }
コード例 #4
0
        public void ExecuteRecipe(Plot plt)
        {
            double[,] values =
            {
                {  78, 83, 84, 76, 43 },
                { 100, 50, 70, 60, 90 }
            };

            var radarPlot = plt.AddRadar(values);

            radarPlot.Smooth = true;
        }
コード例 #5
0
        public void ExecuteRecipe(Plot plt)
        {
            double[,] values =
            {
                {  78, 83, 84, 76, 43 },
                { 100, 50, 70, 60, 90 }
            };

            var radar = plt.AddRadar(values);

            radar.WebColor  = System.Drawing.Color.Red;
            radar.LineWidth = 3;
        }
コード例 #6
0
ファイル: Radar.cs プロジェクト: yongmingxia/ScottPlot
        public void ExecuteRecipe(Plot plt)
        {
            double[,] values =
            {
                {  78, 83, 84, 76, 43 },
                { 100, 50, 70, 60, 90 }
            };

            plt.AddRadar(values);

            // improve plot styling
            plt.Frameless();
            plt.Grid(enable: false);
        }
コード例 #7
0
        public void ExecuteRecipe(Plot plt)
        {
            double[,] values =
            {
                { 5, 3, 10, 15, 3, 2 },
                { 5, 2, 10, 10, 1, 4 },
            };

            var radar = plt.AddRadar(values);

            radar.OutlineWidth = 3;
            radar.GroupLabels  = new string[] { "Sebastian Vettel", "Fernando Alonso" };
            plt.Title("2010 Formula One World Championship");
            plt.Legend();

            /* Data represents the 2010 Formula One World Championship
             * https://en.wikipedia.org/wiki/2010_Formula_One_World_Championship
             * Note: Alonso did not finish (DNF) in the Malaysian GP, but was included
             * here because he completed >90% of the race distance.
             */
        }