当前位置: 首页>>代码示例>>C#>>正文


C# LineItem.AddPoint方法代码示例

本文整理汇总了C#中ZedGraph.LineItem.AddPoint方法的典型用法代码示例。如果您正苦于以下问题:C# LineItem.AddPoint方法的具体用法?C# LineItem.AddPoint怎么用?C# LineItem.AddPoint使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在ZedGraph.LineItem的用法示例。


在下文中一共展示了LineItem.AddPoint方法的7个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C#代码示例。

示例1: button2_Click

 private void button2_Click(object sender, EventArgs e)
 {
     met2.Clear();
     met2.Tag = "";
     var settings2 = GetSettings(new TurnirSelector(), new RandomScreeener());
     var calc2 = new SimpleCalculator(settings2);
     var d1 = DateTime.Now;
     var curve2V = calc2.Start();
     time2 = DateTime.Now.Subtract(d1);
     label13.Text = Math.Round(time2.TotalSeconds, 3).ToString(CultureInfo.InvariantCulture);
     met2 = zedGraphControl1.GraphPane.AddCurve("Метод2", new double[] { 0 }, new double[] { 0 }, Color.Blue);
     foreach (var d in curve2V) { met2.AddPoint(d.Key, d.Value); }
     zedGraphControl1.AxisChange(); zedGraphControl1.RestoreScale(zedGraphControl1.GraphPane);
 }
开发者ID:kostua16,项目名称:GenMethods,代码行数:14,代码来源:Form1.cs

示例2: button1_Click

 private void button1_Click(object sender, EventArgs e)
 {
     met1.Clear();
     met1.Tag = "";
     var settings1 = GetSettings(new RuletteSelector(), new SelectionScreener());
     var calc1 = new SimpleCalculator(settings1);
     var d1 = DateTime.Now;
     var curve1V=calc1.Start();
     time1 = DateTime.Now.Subtract(d1);
     label12.Text = Math.Round(time1.TotalSeconds, 3).ToString(CultureInfo.InvariantCulture);
     met1 = zedGraphControl1.GraphPane.AddCurve("Метод1", new double[] { 0 }, new double[] { 0 }, Color.Red);
     foreach (var d in curve1V) { met1.AddPoint(d.Key, d.Value); }
     zedGraphControl1.AxisChange(); zedGraphControl1.RestoreScale(zedGraphControl1.GraphPane);
 }
开发者ID:kostua16,项目名称:GenMethods,代码行数:14,代码来源:Form1.cs

示例3: AddPoint

 private void AddPoint(LineItem line, double val)
 {
     line.AddPoint(index, val);
     if (line.NPts == 1000) line.RemovePoint(0);
 }
开发者ID:mru00,项目名称:terracontrol,代码行数:5,代码来源:ChartForm.cs

示例4: Interval

        public Interval(double R, double minH, double maxH, double lambda, ZedGraph.GraphPane graphPane, 
            string stationType, string subRange, int waveNumber)
        {
            this.R = R;
            this.minH = minH;
            this.maxH = maxH;
            this.lambda = lambda;
            this.antennaH = antennaH;
            this.graphPane = graphPane;
            this.stationType = stationType;
            this.subRange = subRange;
            this.waveNumber = waveNumber;

            bariers = new List<Barier>();

            PointPair begin = new PointPair(0, (minH + maxH) / 2.0);
            PointPair end = new PointPair(R, (minH + maxH) / 2.0);

            lineOfSight = new LineItem("Линия прямой видимости", new PointPairList(), Color.Blue, SymbolType.None);
            lineOfSight.AddPoint(begin.X, begin.Y + antennaH);
            lineOfSight.AddPoint(end.X, end.Y + antennaH);

            PointPairList points = new PointPairList();
            double x = 0;
            double stepX = R / 500;
            while (x <= R)
            {
                points.Add(x, getEarthCurveH(x));
                x += stepX;
            }
            earthCurve = new ZedGraph.LineItem("Дуга кривизны земной поверхности", points, Color.Green, SymbolType.None);

            graphPane.CurveList.Clear();
            profile = new Profile(begin, end, this);
            bariers = new List<Barier>();

            H0 = new PointPairList();
            x = 0;
            double step = 0.01;
            while (x <= R)
            {
                H0.Add(x, getH0(x));
                x += step;
            }
        }
开发者ID:Leoleshucov008,项目名称:CalculationRRL,代码行数:45,代码来源:Interval.cs

示例5: CurveInfo

 public CurveInfo(string modifiedSequence, Color peptideColor, double retentionTime, float intensity)
 {
     Curve = new LineItem(string.Empty, new PointPairList(), peptideColor, SymbolType.None)
     {
         Line = { Fill = new Fill(Color.FromArgb(80, peptideColor)), Width = 1, IsAntiAlias = true },
         Label = { IsVisible = false }
     };
     Curve.AddPoint(retentionTime - ChromatogramLoadingStatus.TIME_RESOLUTION, 0);
     Curve.AddPoint(retentionTime, intensity);
     Curve.AddPoint(retentionTime + ChromatogramLoadingStatus.TIME_RESOLUTION, 0);
     ModifiedSequence = modifiedSequence;
 }
开发者ID:lgatto,项目名称:proteowizard,代码行数:12,代码来源:AsyncChromatogramsGraph.cs

示例6: FillCorrelation

        private void FillCorrelation(Series s1, Series s2, LineItem series1)
        {
            int sz = s1.Count;

            for (int i = 0; i < sz; i++)
            {
                Point pt = s1[i];

                if (!pt.IsMissing)
                {
                    int idx = s2.IndexOf(pt.DateTime);
                    if (idx >= 0)
                    {
                        Point pt2 = s2[idx];
                        if (!pt2.IsMissing)
                        {
                            series1.AddPoint(pt.Value, pt2.Value);
                        }
                    }
                }
            }
        }
开发者ID:usbr,项目名称:Pisces,代码行数:22,代码来源:ZedGraphDataLoader.cs

示例7: FrmMain_Load

        private void FrmMain_Load(object sender, EventArgs args)
        {
            gPane1 = zgGraph1.GraphPane;
            gPane2 = zgGraph2.GraphPane;
            gPane3 = zgGraph3.GraphPane;
            InitGraphPane(gPane1, "Log(n)^2  (n = Network Size)", "Total Bits Sent");
            InitGraphPane(gPane2, "Log(n)  (n = Network Size)", "Total Search Time (ms)");
            InitGraphPane(gPane3, "Log(n)  (n = Network Size)", "Avg. Space Per Node (bits)");

            //InitGraphPane(gPane1, "Network Size", "Total Bits Sent");
            //InitGraphPane(gPane2, "Network Size", "Total Search Time (ms)");
            //InitGraphPane(gPane3, "Network Size", "Avg. Space Per Node (bits)");

            curveMessages = gPane1.AddCurve("Total Bits Sent vs. Size of Network", null, Color.Blue, SymbolType.None);
            curveTime = gPane2.AddCurve("Total Search Time vs. Size of Network", null, Color.Red, SymbolType.None);
            curveMemory = gPane3.AddCurve("Total Memory vs. Size of Network", null, Color.Green, SymbolType.None);

            curveMessages.Line.Width = 1.6F;
            curveMessages.Line.IsAntiAlias = true;
            curveTime.Line.Width = 1.6F;
            curveTime.Line.IsAntiAlias = true;
            curveMemory.Line.Width = 1.6F;
            curveMemory.Line.IsAntiAlias = true;

            for (int i = 6; i < 11; i++)
            {
                var bn = new ButterflyNetwork<Image>();	    // 842667722

                n = (int)Math.Pow(2, i);
                int B = 3, C = 3, D = 3, T = 3;
                double a = 0.1, b = 6.5;

                //int n = (int)Math.Pow(2, i);
                //double e = 0.05;
                //double d = 0.9;
                //double a = 0.25;
                //double ap = 0.095;
                //double b = 1.001;
                //double g = 0.2;
                //int B = (int)Math.Round(1 / g * Math.Log(Math.E/e, Math.E));
                //int C = (int)Math.Round(10 / 3 * (2 * Math.Log(2 * Math.E, Math.E)) / (d * (1 - g) * Math.Pow(1 - (2 * a), 2)));
                //int D = (int)Math.Round(b / (ap * (a - ap)) * (ap * Math.Log(b * Math.E / ap, Math.E) + (a - ap) * Math.Log(b * Math.E / (a - ap), Math.E) + 2/C));
                //int T = (int)Math.Round(1 / (1 - d) * Math.Log(Math.E / e, Math.E));

                bn.InitializationFinished += new ButterflyNetwork<Image>.InitializationHandler(bn_InitializationFinished);
                bn.SearchStarted += new ButterflyNetwork<Image>.SearchFinishedHandler(bn_SearchStarted);
                bn.SearchFinished += new ButterflyNetwork<Image>.SearchFinishedHandler(bn_SearchFinished);

                bn.InitializeNetwork(n, B, C, D, T, a, b);

                var images = new List<ImageDataItem>();
                var filePaths = Directory.GetFiles(@"c:\images256");
                foreach (var filePath in filePaths.Take(2))
                {
                    images.Add(new ImageDataItem(filePath));
                }
                bn.StoreDataItems(images);

                var query = new ImageDataItem()
                {
                    Title = Path.GetFileNameWithoutExtension(filePaths[0])
                };

                bn.Search(query, 8);
                bn.Run();

                curveMessages.AddPoint(n, bn.SentSize * 8 / n);
                zgGraph1.RestoreScale(gPane1);
            }
        }
开发者ID:mahdiz,项目名称:mpclib,代码行数:70,代码来源:FrmMain.cs


注:本文中的ZedGraph.LineItem.AddPoint方法示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。