Exemplo n.º 1
0
        /// <summary>
        /// Plot data from arrays of matched X/Y points
        /// </summary>
        public void Scatter(
            double[] xs,
            double[] ys,
            string label  = null,
            SKColor?color = null,
            bool secondY  = false
            )
        {
            var style = new Style(
                label: label,
                color: color,
                plotNumber: plottables.Count,
                secondY: secondY
                );

            var scatterPlot = new Plottables.Scatter(xs, ys, style);

            plottables.Add(scatterPlot);

            if (style.secondY)
            {
                axes2.y.display = true;
            }

            AutoAxis();
        }
Exemplo n.º 2
0
        public void Scatter(double[] xs, double[] ys, Style style = null)
        {
            if (style is null)
            {
                style = new Style(colorIndex: plottables.Count);
            }
            var scatterPlot = new Plottables.Scatter(xs, ys, style);

            plottables.Add(scatterPlot);
        }