public PlottableSignalConst PlotSignalConst( double[] ys, double sampleRate = 1, double xOffset = 0, double yOffset = 0, Color?color = null, double lineWidth = 1, double markerSize = 5, string label = null ) { if (color == null) { color = settings.GetNextColor(); } PlottableSignalConst signal = new PlottableSignalConst( ys: ys, sampleRate: sampleRate, xOffset: xOffset, yOffset: yOffset, color: (Color)color, lineWidth: lineWidth, markerSize: markerSize, label: label, useParallel: settings.useParallel ); settings.plottables.Add(signal); return(signal); }
public PlottableSignalConst<T> PlotSignalConst<T>( T[] ys, double sampleRate = 1, double xOffset = 0, double yOffset = 0, Color? color = null, double lineWidth = 1, double markerSize = 5, string label = null ) where T : struct, IComparable { if (color == null) color = settings.GetNextColor(); PlottableSignalConst<T> signal = new PlottableSignalConst<T>( ys: ys, sampleRate: sampleRate, xOffset: xOffset, yOffset: yOffset, color: (Color)color, lineWidth: lineWidth, markerSize: markerSize, label: label, useParallel: settings.misc.useParallel ); settings.plottables.Add(signal); return signal; }
public PlottableSignalConst <T> PlotSignalConst <T>( T[] ys, double sampleRate = 1, double xOffset = 0, double yOffset = 0, Color?color = null, double lineWidth = 1, double markerSize = 5, string label = null, Color[] colorByDensity = null, int?minRenderIndex = null, int?maxRenderIndex = null, LineStyle lineStyle = LineStyle.Solid, bool useParallel = true ) where T : struct, IComparable { if (color == null) { color = settings.GetNextColor(); } if (minRenderIndex == null) { minRenderIndex = 0; } if (maxRenderIndex == null) { maxRenderIndex = ys.Length - 1; } PlottableSignalConst <T> signal = new PlottableSignalConst <T>( ys: ys, sampleRate: sampleRate, xOffset: xOffset, yOffset: yOffset, color: (Color)color, lineWidth: lineWidth, markerSize: markerSize, label: label, colorByDensity: colorByDensity, minRenderIndex: minRenderIndex.Value, maxRenderIndex: maxRenderIndex.Value, lineStyle: lineStyle, useParallel: useParallel ); Add(signal); return(signal); }
public PlottableSignalConst <T> PlotSignalConst <T>( T[] ys, double sampleRate = 1, double xOffset = 0, double yOffset = 0, Color?color = null, double lineWidth = 1, double markerSize = 5, string label = null, Color[] colorByDensity = null, int?minRenderIndex = null, int?maxRenderIndex = null, LineStyle lineStyle = LineStyle.Solid, bool useParallel = true ) where T : struct, IComparable { PlottableSignalConst <T> signal = new PlottableSignalConst <T>() { ys = ys, sampleRate = sampleRate, xOffset = xOffset, yOffset = yOffset, color = color ?? settings.GetNextColor(), lineWidth = lineWidth, markerSize = (float)markerSize, label = label, colorByDensity = colorByDensity, minRenderIndex = minRenderIndex ?? 0, maxRenderIndex = maxRenderIndex ?? ys.Length - 1, lineStyle = lineStyle, useParallel = useParallel }; Add(signal); return(signal); }