Changeset 12586 for branches/HiveStatistics/sources/HeuristicLab.Problems.DataAnalysis.Views/3.4/Regression
- Timestamp:
- 07/03/15 16:40:34 (9 years ago)
- Location:
- branches/HiveStatistics/sources
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/HiveStatistics/sources
- Property svn:mergeinfo changed
/trunk/sources merged: 12559,12561,12577-12581,12583
- Property svn:mergeinfo changed
-
branches/HiveStatistics/sources/HeuristicLab.Problems.DataAnalysis.Views
- Property svn:mergeinfo changed
/trunk/sources/HeuristicLab.Problems.DataAnalysis.Views merged: 12577-12578
- Property svn:mergeinfo changed
-
branches/HiveStatistics/sources/HeuristicLab.Problems.DataAnalysis.Views/3.4/Regression/RegressionSolutionErrorCharacteristicsCurveView.cs
r12515 r12586 125 125 126 126 var maxValue = residuals.Max(); 127 double scale = Math.Pow(10, Math.Floor(Math.Log10(maxValue))); 128 var maximum = scale * (1 + (int)(maxValue / scale)); 129 chart.ChartAreas[0].AxisX.Maximum = maximum; 130 chart.ChartAreas[0].CursorX.Interval = residuals.Min() / 100; 127 if (maxValue >= chart.ChartAreas[0].AxisX.Maximum) { 128 double scale = Math.Pow(10, Math.Floor(Math.Log10(maxValue))); 129 var maximum = scale * (1 + (int)(maxValue / scale)); 130 chart.ChartAreas[0].AxisX.Maximum = maximum; 131 chart.ChartAreas[0].CursorX.Interval = residuals.Min() / 100; 132 } 131 133 132 134 UpdateSeries(residuals, solutionSeries); … … 211 213 .Where(x => x > 0) // remove entries where the original value is 0 212 214 .ToList(); 213 } 214 // should never happen 215 return new List<double>(); 215 default: throw new NotSupportedException(); 216 } 216 217 } 217 218
Note: See TracChangeset
for help on using the changeset viewer.