Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- protected void CalcDataGraphs()
- {
- this.SuspendLayout();
- display.DataSources.Clear();
- display.SetDisplayRangeX(1, 500);
- for (int j = 0; j < NumGraphs; j++)
- {
- display.DataSources.Add(new DataSource());
- display.DataSources[j].Name = "Line Graph " + (j + 1);
- display.DataSources[j].OnRenderXAxisLabel += RenderXLabel;
- switch (CurExample)
- {
- case "Basic":
- this.Text = "Basic Graph";
- display.DataSources[j].Length = 5000;
- display.PanelLayout = PlotterGraphPaneEx.LayoutMode.NORMAL;
- display.DataSources[j].AutoScaleY = false;
- display.DataSources[j].SetDisplayRangeY(-500, 500);
- display.DataSources[j].SetGridDistanceY(200);
- display.DataSources[j].OnRenderYAxisLabel = RenderYLabel;
- CalcSinusFunction_0(display.DataSources[j], j);
- break;
- }
- }
- ApplyColorSchema();
- this.ResumeLayout();
- display.Refresh();
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement