示例#1
0
        public SignalPlotXY PlotSignalXY(
            double[] xs,
            double[] ys,
            Color?color         = null,
            double lineWidth    = 1,
            double markerSize   = 5,
            string label        = null,
            int?minRenderIndex  = null,
            int?maxRenderIndex  = null,
            LineStyle lineStyle = LineStyle.Solid,
            bool useParallel    = true
            )
        {
            SignalPlotXY signal = new SignalPlotXY()
            {
                xs             = xs,
                ys             = ys,
                color          = color ?? settings.GetNextColor(),
                lineWidth      = lineWidth,
                markerSize     = (float)markerSize,
                label          = label,
                minRenderIndex = minRenderIndex ?? 0,
                maxRenderIndex = maxRenderIndex ?? ys.Length - 1,
                lineStyle      = lineStyle,
                useParallel    = useParallel
            };

            Add(signal);
            return(signal);
        }
 public void UpdateNetworkChart()
 {
     foreach (var T in DefaultSeriesTypes)
     {
         SignalPlotXY plotXY = NetworkChart.Plot.AddSignalXY(T.Value.GetArrayX(), T.Value.GetArrayY(), null, T.Value.ToString());
         plotXY.IsVisible = T.Value.bVisible;
     }
 }