Esempio n. 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;
 }
Esempio n. 2
0
 internal DisplayedGraph(GraphViewer viewer, Graph graph, Color color, int lineWidth, string hint)
 {
     _Viewer = viewer;
     _Graph = graph;
     _Color = color;
     _Hint = hint;
     _LineWidth = lineWidth;
 }
Esempio n. 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;
 }
Esempio n. 4
0
 public GraphTemplate(string desc, Graph.MathFunction func)
 {
     Func = func;
     _Description = desc;
 }