Changeset 3867
- Timestamp:
- 05/28/10 14:02:02 (14 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/sources/HeuristicLab.Problems.DataAnalysis.Views/3.3/ScatterPlotView.cs
r3764 r3867 58 58 this.chart.Series[TRAINING_SERIES].LegendText = TRAINING_SERIES; 59 59 this.chart.Series[TRAINING_SERIES].ChartType = SeriesChartType.FastPoint; 60 this.chart.Series[TRAINING_SERIES].Points.Add(1.0); 60 61 61 62 this.chart.Series.Add(TEST_SERIES); … … 110 111 this.UpdateSeries(); 111 112 if (!this.chart.Series.Any(s => s.Points.Count > 0)) 112 this.ToggleSeriesData(this.chart.Series[TRAINING_SERIES]);113 else114 113 this.ClearChart(); 115 114 } … … 139 138 int testStart = Content.ProblemData.TestSamplesStart.Value; 140 139 int testEnd = Content.ProblemData.TestSamplesEnd.Value; 141 if 142 143 140 if(this.chart.Series[ALL_SERIES].Points.Count > 0) 141 this.chart.Series[ALL_SERIES].Points.DataBindXY(Content.EstimatedValues.ToArray(), "", 142 dataset[targetVariableName], ""); 144 143 if (this.chart.Series[TRAINING_SERIES].Points.Count > 0) 145 146 144 this.chart.Series[TRAINING_SERIES].Points.DataBindXY(Content.EstimatedTrainingValues.ToArray(), "", 145 dataset.GetVariableValues(targetVariableName, trainingStart, trainingEnd), ""); 147 146 if (this.chart.Series[TEST_SERIES].Points.Count > 0) 148 149 147 this.chart.Series[TEST_SERIES].Points.DataBindXY(Content.EstimatedTestValues.ToArray(), "", 148 dataset.GetVariableValues(targetVariableName, testStart, testEnd), ""); 150 149 151 150 double max = Math.Max(Content.EstimatedValues.Max(), dataset.GetMax(targetVariableName));
Note: See TracChangeset
for help on using the changeset viewer.