日期:2014-05-20 浏览次数:21296 次
        private PointPairList lstStart1 = new PointPairList();
        private PointPairList lstStart2 = new PointPairList();
        private void draw()
        {
           lstStart1.Add(5.00, 2.0);
            lstStart1.Add(9.00, 2.0);
            lstStart1.Add(9.00, 1.0);
            myCurve1 = myPane.AddCurve("Min", lstStart1, Color.Red, SymbolType.None);
            lstStart2.Add(5.00, 2.60);
            lstStart2.Add(9.00, 2.60);
            myCurve2 = myPane.AddCurve("Max", lstStart2, Color.Yellow, SymbolType.None);
       }
                    if (i <= 36)
                    {
                        double x = i;
                        double y = 1.5 + Math.Sin(i * 0.2);
                        y = Math.Round(y, 3);
                        list1.Add(x, y);
                        myCurve = myPane.AddCurve("", list1, Color.White, SymbolType.None);
 
                        zedGraphControl1.GraphPane = myPane;
                        zedGraphControl1.AxisChange();
                        zedGraphControl1.Refresh();
                        Application.DoEvents();
                        
                    }