예제 #1
0
        private void Display(int expIdx)
        {
            object[,] data = ctxt.BatchExperiment.Experiments[expIdx].NonTimeSeriesData[ctxt.FocusedItem.Index] as object[, ];

            ColorMap cm = CreateColorMap(expIdx);

            plotter = new Array2DPlotter(cm);

            plotter.ResetData(data);
            mdTSMatrix.Draw(plotter);

            lciInformation.Text = string.Format("实验\"{0}\"( 最低值:{1:F3} 最高值:{2:F3} 均值:{3:F3} 标准差:{4:F3} )", lueExprs.Text, minValue, maxValue, mean, stdDev);
        }
예제 #2
0
        public PlotTSMatrixForm(Context ctxt)
        {
            this.ctxt = ctxt;
            InitializeComponent();

            timeStampList = ctxt.FocusedExperiment.TimeSeriesData.GetTimeSeries(ctxt.FocusedItem.Index);
            timeStampList.Sort();

            tbcTime.Properties.Minimum = rtbcPlayback.Properties.Minimum = 0;
            tbcTime.Properties.Maximum = rtbcPlayback.Properties.Maximum = timeStampList.Count - 1;

            ColorMap cm = CreateColorMap();

            plotter = new Array2DPlotter(cm);
        }
예제 #3
0
 public void Draw(Array2DPlotter plotter)
 {
     this.plotter = plotter;
     pePlot.Image = null;
     pePlot.Image = plotter.GetPlottedImage(Width, Height);
 }