Exemplo n.º 1
0
 internal FormBitmapGraphSelection(IObjectLabel label, BitmapGraphSelection selection, IChartTable ct)
     : this()
 {
     this.label = label;
     UpdateFormUI();
     this.selection = selection;
     userControlBitmapGraphSelectionTab.Selection  = selection;
     userControlBitmapGraphSelectionTab.ChartTable = ct;
 }
Exemplo n.º 2
0
            DataPerformer.Series CreateSeries(BitmapGraphSelection selection)
            {
                IMeasurements m = selection;

                if (m.Count < 2)
                {
                    return(null);
                }
                double[][]           d                = new double[][] { (double[])m[0].Parameter(), (double[])m[1].Parameter() };
                DataPerformer.Series series           = new DataPerformer.Series();
                Chart.Drawing.Series.SimpleSeries ser = new Chart.Drawing.Series.SimpleSeries();
                int n = d[0].Length;

                for (int i = 0; i < n; i++)
                {
                    double x = d[0][i];
                    double y = d[1][i];
                    series.AddXY(x, y);
                    ser.AddXY(x, y);
                }
                return(series);
            }
Exemplo n.º 3
0
 internal ChartTable(BitmapGraphSelection chart)
 {
     series = CreateSeries(chart);
 }