示例#1
0
 public static Graph IterateMathFunction(MathFunction func, double start, double end, double step)
 {
     Graph gr = new Graph();
     for (double x = start; x < end; x += step)
         gr.AddPoint(x, func(x));
     return gr;
 }
示例#2
0
 internal DisplayedGraph(GraphViewer viewer, Graph graph, Color color, int lineWidth, string hint)
 {
     _Viewer = viewer;
     _Graph = graph;
     _Color = color;
     _Hint = hint;
     _LineWidth = lineWidth;
 }
示例#3
0
 public DisplayedGraph AddGraph(Graph graph, Color color, int lineWidth, string hint)
 {
     DisplayedGraph gr = new DisplayedGraph(this, graph, color, lineWidth, hint);
     _Graphs.Add(gr);
     UpdateScaling();
     Invalidate();
     UpdateLegend();
     return gr;
 }
示例#4
0
 public GraphTemplate(string desc, Graph.MathFunction func)
 {
     Func = func;
     _Description = desc;
 }