- Timestamp:
- 01/14/17 19:15:57 (8 years ago)
- Location:
- stable
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
stable
- Property svn:mergeinfo changed
/trunk/sources merged: 14405
- Property svn:mergeinfo changed
-
stable/HeuristicLab.Problems.DataAnalysis.Views
- Property svn:mergeinfo changed
/trunk/sources/HeuristicLab.Problems.DataAnalysis.Views merged: 14405
- Property svn:mergeinfo changed
-
stable/HeuristicLab.Problems.DataAnalysis.Views/3.4/Regression/RegressionSolutionScatterPlotView.cs
r14309 r14568 76 76 //configure axis 77 77 this.chart.CustomizeAllChartAreas(); 78 this.chart.ChartAreas[0].AxisX.Title = "Estimated Values"; 78 this.chart.ChartAreas[0].AxisY.Title = "Estimated Values"; 79 this.chart.ChartAreas[0].CursorY.IsUserSelectionEnabled = true; 80 this.chart.ChartAreas[0].AxisY.ScaleView.Zoomable = true; 81 this.chart.ChartAreas[0].CursorX.Interval = 1; 82 this.chart.ChartAreas[0].CursorY.Interval = 1; 83 84 this.chart.ChartAreas[0].AxisX.Title = "Target Values"; 79 85 this.chart.ChartAreas[0].CursorX.IsUserSelectionEnabled = true; 80 86 this.chart.ChartAreas[0].AxisX.ScaleView.Zoomable = true; 81 this.chart.ChartAreas[0].CursorX.Interval = 1; 82 this.chart.ChartAreas[0].CursorY.Interval = 1; 83 84 this.chart.ChartAreas[0].AxisY.Title = "Target Values"; 85 this.chart.ChartAreas[0].CursorY.IsUserSelectionEnabled = true; 86 this.chart.ChartAreas[0].AxisY.ScaleView.Zoomable = true; 87 this.chart.ChartAreas[0].AxisY.IsStartedFromZero = true; 87 this.chart.ChartAreas[0].AxisX.IsStartedFromZero = true; 88 88 } 89 89 … … 158 158 var dataset = Content.ProblemData.Dataset; 159 159 if (this.chart.Series[ALL_SERIES].Points.Count > 0) 160 this.chart.Series[ALL_SERIES].Points.DataBindXY( Content.EstimatedValues.ToArray(), "",161 dataset.GetDoubleValues(targetVariableName).ToArray(), "");160 this.chart.Series[ALL_SERIES].Points.DataBindXY(dataset.GetDoubleValues(targetVariableName).ToArray(), "", 161 Content.EstimatedValues.ToArray(), ""); 162 162 if (this.chart.Series[TRAINING_SERIES].Points.Count > 0) 163 this.chart.Series[TRAINING_SERIES].Points.DataBindXY( Content.EstimatedTrainingValues.ToArray(), "",164 dataset.GetDoubleValues(targetVariableName, Content.ProblemData.TrainingIndices).ToArray(), "");163 this.chart.Series[TRAINING_SERIES].Points.DataBindXY(dataset.GetDoubleValues(targetVariableName, Content.ProblemData.TrainingIndices).ToArray(), "", 164 Content.EstimatedTrainingValues.ToArray(), ""); 165 165 if (this.chart.Series[TEST_SERIES].Points.Count > 0) 166 this.chart.Series[TEST_SERIES].Points.DataBindXY(Content.EstimatedTestValues.ToArray(), "", 167 dataset.GetDoubleValues(targetVariableName, Content.ProblemData.TestIndices).ToArray(), ""); 168 166 this.chart.Series[TEST_SERIES].Points.DataBindXY(dataset.GetDoubleValues(targetVariableName, Content.ProblemData.TestIndices).ToArray(), "", 167 Content.EstimatedTestValues.ToArray(), ""); 169 168 double max = Content.EstimatedTrainingValues.Concat(Content.EstimatedTestValues.Concat(Content.EstimatedValues.Concat(dataset.GetDoubleValues(targetVariableName)))).Max(); 170 169 double min = Content.EstimatedTrainingValues.Concat(Content.EstimatedTestValues.Concat(Content.EstimatedValues.Concat(dataset.GetDoubleValues(targetVariableName)))).Min(); … … 172 171 double axisMin, axisMax, axisInterval; 173 172 ChartUtil.CalculateOptimalAxisInterval(min, max, out axisMin, out axisMax, out axisInterval); 174 this.chart.ChartAreas[0].AxisX.Title = "Estimated " + targetVariableName; 173 this.chart.ChartAreas[0].AxisY.Title = "Estimated " + targetVariableName; 174 this.chart.ChartAreas[0].AxisY.Maximum = axisMax; 175 this.chart.ChartAreas[0].AxisY.Minimum = axisMin; 176 this.chart.ChartAreas[0].AxisY.Interval = axisInterval; 177 this.chart.ChartAreas[0].AxisX.Title = targetVariableName; 175 178 this.chart.ChartAreas[0].AxisX.Maximum = axisMax; 176 179 this.chart.ChartAreas[0].AxisX.Minimum = axisMin; 177 180 this.chart.ChartAreas[0].AxisX.Interval = axisInterval; 178 this.chart.ChartAreas[0].AxisY.Title = targetVariableName;179 this.chart.ChartAreas[0].AxisY.Maximum = axisMax;180 this.chart.ChartAreas[0].AxisY.Minimum = axisMin;181 this.chart.ChartAreas[0].AxisY.Interval = axisInterval;182 181 183 182 UpdateCursorInterval(); … … 216 215 } 217 216 if (predictedValues.Length == targetValues.Length) 218 series.Points.DataBindXY( predictedValues, "", targetValues, "");217 series.Points.DataBindXY(targetValues, "", predictedValues, ""); 219 218 this.chart.Legends[series.Legend].ForeColor = Color.Black; 220 219 UpdateCursorInterval();
Note: See TracChangeset
for help on using the changeset viewer.