コード例 #1
0
        public PlottableErrorBars PlotErrorBars(
            double[] xs,
            double[] ys,
            double[] xPositiveError = null,
            double[] xNegativeError = null,
            double[] yPositiveError = null,
            double[] yNegativeError = null,
            Color?color             = null,
            double lineWidth        = 1,
            double capWidth         = 3,
            string label            = null
            )
        {
            if (color is null)
            {
                color = settings.GetNextColor();
            }

            PlottableErrorBars errorBars = new PlottableErrorBars(
                xs,
                ys,
                xPositiveError,
                xNegativeError,
                yPositiveError,
                yNegativeError,
                color.Value,
                lineWidth,
                capWidth,
                label
                );

            Add(errorBars);
            return(errorBars);
        }
コード例 #2
0
        public PlottableErrorBars PlotErrorBars(
            double[] xs,
            double[] ys,
            double[] xPositiveError = null,
            double[] xNegativeError = null,
            double[] yPositiveError = null,
            double[] yNegativeError = null,
            Color?color             = null,
            double lineWidth        = 1,
            double capWidth         = 3,
            string label            = null
            )
        {
            var errorBars = new PlottableErrorBars(xs, ys, xPositiveError, xNegativeError, yPositiveError, yNegativeError)
            {
                Color     = color ?? settings.GetNextColor(),
                LineWidth = (float)lineWidth,
                CapSize   = (float)capWidth,
                label     = label
            };

            Add(errorBars);
            return(errorBars);
        }