Exemplo n.º 1
0
        private void initialize(double[] x, double[] y, int[] z)
        {
            this.XAxis     = x;
            this.YAxis     = y;
            this.LabelAxis = z;

            if (z == null)
            {
                LabelValues = new int[] { };
            }
            else
            {
                LabelValues = LabelAxis.Distinct();
            }

            LabelNames = new string[LabelValues.Length];
            for (int i = 0; i < LabelNames.Length; i++)
            {
                LabelNames[i] = i.ToString();
            }

            var classes = new ScatterplotClassValueCollection[LabelValues.Length];

            for (int i = 0; i < classes.Length; i++)
            {
                classes[i] = new ScatterplotClassValueCollection(this, i);
            }
            Classes = new ReadOnlyCollection <ScatterplotClassValueCollection>(classes);
        }
Exemplo n.º 2
0
        private void initialize(double[] x, double[] y, int[] z)
        {
            this.XAxis     = x;
            this.YAxis     = y;
            this.LabelAxis = z;
            LabelValues    = LabelAxis.Distinct().ToArray();

            ScatterplotClassValueCollection[] classes = new ScatterplotClassValueCollection[LabelValues.Length];
            for (int i = 0; i < classes.Length; i++)
            {
                classes[i] = new ScatterplotClassValueCollection(this, i);
            }
            Classes = new ReadOnlyCollection <ScatterplotClassValueCollection>(classes);
        }