public void RenewYScale(ChartParameters paras) { GraphPane myPane = zedgraphControl.GraphPane; myPane.YAxis.Scale.Max = paras.YMax; myPane.YAxis.Scale.Min = paras.YMin; }
public void Init(ChartParameters paras) { GraphPane myPane = zedgraphControl.GraphPane; myPane.XAxis.Title.Text = paras.XTitle; myPane.YAxis.Title.Text = paras.YTitle; RollingPointPairList list = new RollingPointPairList(200000); LineItem curve = myPane.AddCurve(paras.CurveName, list, Color.Red, SymbolType.None); myPane.AddCurve("正弦", new RollingPointPairList(20000), Color.Blue, SymbolType.Star); myPane.YAxis.Scale.Max = paras.YMax; myPane.YAxis.Scale.Min = paras.YMin; myPane.XAxis.Scale.MinorStep = 1; myPane.XAxis.Scale.MajorStep = 1; zedgraphControl.AxisChange(); tickStart = Environment.TickCount; }