Exemplo n.º 1
0
        public PlottableVectorField PlotVectorField(
            Statistics.Vector2[,] vectors,
            double[] xs,
            double[] ys,
            string label = null,
            Color?color  = null,
            Drawing.Colormap colormap = null,
            double scaleFactor        = 1
            )
        {
            var vectorField = new PlottableVectorField(vectors, xs, ys,
                                                       colormap, scaleFactor, color ?? settings.GetNextColor())
            {
                label = label
            };

            Add(vectorField);
            return(vectorField);
        }
Exemplo n.º 2
0
        public PlottableVectorField PlotVectorField(
            Statistics.Vector2[,] vectors,
            double[] xs,
            double[] ys,
            string label = null,
            Color?color  = null,
            Drawing.Colormap colormap = null,
            double scaleFactor        = 1
            )
        {
            if (!color.HasValue)
            {
                color = settings.GetNextColor();
            }

            var vectorField = new PlottableVectorField(vectors, xs, ys, label, color.Value, colormap, scaleFactor);

            Add(vectorField);
            return(vectorField);
        }