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


C# Series.Graph方法代码示例

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


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

示例1: GraphRankOrder

 public void GraphRankOrder(int pointsToGraph)
 {
     data.Sort();
     data.Reverse();
     Series ser = new Series();
     for (int i = 0; i < data.Count(); i++) {
         ser.Points.AddXY(i + 1, data[i]);
     }
     ser.Graph(pointsToGraph);
 }
开发者ID:Amichai,项目名称:ComplexSystems,代码行数:10,代码来源:Signal.cs

示例2: Graph

 public void Graph()
 {
     Series ser = new Series();
     for (int i = 0; i < data.Count(); i++) {
         ser.Points.AddXY(i + 1, data[i]);
     }
     ser.Graph();
 }
开发者ID:Amichai,项目名称:ComplexSystems,代码行数:8,代码来源:Signal.cs

示例3: GraphLogLog

 public void GraphLogLog(string label = "")
 {
     Series ser = new Series(label);
     double A;
     if (!cumulative) {
         for (int i = 0; i < negativeBins.Count(); i++) {
             A = -1 * i * binSize;
             if(A >0 && negativeBins[i] >0)
                 ser.Points.AddXY(Math.Log(A), Math.Log(negativeBins[i]));
         } for (int j = 0; j < positiveBins.Count(); j++) {
             A = j* binSize;
             if (A > 0 && positiveBins[j] > 0)
             ser.Points.AddXY(Math.Log(A), Math.Log(positiveBins[j]));
         }
     }
     ser.ChartType = SeriesChartType.Point;
     //TODO: overload this method so that we have a control to manipulate parameters and redraw the control
     ser.Graph();
 }
开发者ID:Amichai,项目名称:ComplexSystems,代码行数:19,代码来源:Histogram.cs

示例4: Graph

        public void Graph(string label = "")
        {
            Series ser = new Series(label);
            if (!cumulative) {
                for (int i = 0; i < negativeBins.Count(); i++) {
                //for (int i = negativeBins.Count() - 1; i >= 0 ; i--) {
                    ser.Points.AddXY(-1 * (/*negativeBins.Count() - 1 -*/ i) * binSize, negativeBins[i]);
                } for (int j = 0; j < positiveBins.Count(); j++) {
                    ser.Points.AddXY(j * binSize, positiveBins[j]);
                }
            } else {
                double sum = 0;
                for (int i = 0; i < negativeBins.Count(); i++) {
                    sum += negativeBins[i];
                    ser.Points.AddXY(-1 * (negativeBins.Count() - i), sum);
                } for (int j = 0; j < positiveBins.Count(); j++) {
                    sum += positiveBins[j];
                    ser.Points.AddXY(j, sum);
                }
            }

            //TODO: overload this method so that we have a control to manipulate parameters and redraw the control
            ser.Graph();
        }
开发者ID:Amichai,项目名称:ComplexSystems,代码行数:24,代码来源:Histogram.cs


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