Exemplo n.º 1
0
        public new void AddCurve(CurveInfo ci, String curveName)
        {
            //CurveObject co = new CurveObject((((PointPairList)curve.Points).ToSlice(0, 0.010).Stretch(GlobalVars.XACTMAX)), 0);
            //this.zedGraphControl1.GraphPane.AddCurve("NONE", co.PointPairList, Color.Red, SymbolType.Circle);
            this.zedGraphControl1.GraphPane.CurveList.Add(ci.Curve);
            if (toggle)
            {
                ci.Color = Color.Red;
            }
            else
            {
                ci.Color = Color.Green;
            }
            toggle = !toggle;
            base.AddCurve(ci, curveName);
            AddMenuItem(ci.Curve, ci.Type, curveName);

            if (ci.Type != this.GraphInformation.MaxCurveType)
            {
                ci.Curve.IsY2Axis = true;
            }
            if (SetX2Axis(ci.Type))
            {
                ci.Curve.IsX2Axis = true;
                this.zedGraphControl1.GraphPane.X2Axis.IsVisible = true;
                string scale = "Time(s)";
                if (ci.Type == CurveType.Power || ci.Type == CurveType.Magnitude)
                {
                    scale = "Frequency(Hz)";
                }
                this.zedGraphControl1.GraphPane.X2Axis.Title.Text = scale;
            }
            UpdateScales();
            this.zedGraphControl1.GraphPane.Title.Text = this.GraphName;
            this.zedGraphControl1.GraphPane.AxisChange();
            //GraphInformation.Add(curve,type);
        }
Exemplo n.º 2
0
 public void AddCurve(CurveInfo ci,  String curveName)
 {
     GraphInformation.Add(ci.Curve, ci.Type, curveName);
 }