本文整理汇总了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);
}
示例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();
}
示例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();
}
示例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();
}