我的曲线定义如下
zgc.MasterPane.PaneList[0].XAxis.Scale.Max = listACSignal[listACSignal.Count - 1].X / 2;
zgc.MasterPane.PaneList[0].XAxis.Scale.MinAuto = false;
zgc.MasterPane.PaneList[0].YAxis.Scale.MinAuto = true;
zgc.MasterPane.PaneList[0].YAxis.Scale.MaxAuto = true;
zgc.MasterPane.PaneList[0].XAxis.Type = AxisType.Linear;
zgc.MasterPane.PaneList[0].XAxis.Scale.Format = "";
zgc.MasterPane.PaneList[0].XAxis.Scale.Min = 0;
zgc.MasterPane.PaneList[0].TitleGap = 0;
myCurveACSignal = zgc.MasterPane.PaneList[0].AddCurve(null, listACSignal, Color.Lime, SymbolType.None);
myCurveACSignal.Line.Width = lineWidth;
Fill fillACSignal = new Fill(Color.Blue, Color.Red);
fillACSignal.RangeMin = 1;
fillACSignal.RangeMax = 2;
fillACSignal.Type = FillType.GradientByZ;
myCurveACSignal.Line.GradientFill = fillACSignal;
myCurveACSignal.Line.IsSmooth = true;
myCurveACSignal.Line.SmoothTension = 0.2F;
我想锐化交叉线,所以我使用了IsSmooth
属性。但是它会影响曲线的颜色。我想要我的曲线蓝色,但如果我使用IsSmooth
它会显示紫色线条。反正有没有阻止颜色变化?