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