Changeset 12385
- Timestamp:
- 05/05/15 12:49:01 (10 years ago)
- Location:
- stable
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
stable
- Property svn:mergeinfo changed
/trunk/sources merged: 12365
- Property svn:mergeinfo changed
-
stable/HeuristicLab.Problems.DataAnalysis.Views
- Property svn:mergeinfo changed
/trunk/sources/HeuristicLab.Problems.DataAnalysis.Views merged: 12365
- Property svn:mergeinfo changed
-
stable/HeuristicLab.Problems.DataAnalysis.Views/3.4/Regression/RegressionSolutionErrorCharacteristicsCurveView.cs
r12009 r12385 48 48 chart.ChartAreas[0].AxisX.Title = "Absolute Error"; 49 49 chart.ChartAreas[0].AxisX.Minimum = 0.0; 50 chart.ChartAreas[0].AxisX.Maximum = 1.0;50 chart.ChartAreas[0].AxisX.Maximum = 0.0; 51 51 chart.ChartAreas[0].AxisX.IntervalAutoMode = IntervalAutoMode.VariableCount; 52 52 chart.ChartAreas[0].CursorX.Interval = 0.01; … … 118 118 solutionSeries.ChartType = SeriesChartType.FastLine; 119 119 var residuals = GetResiduals(GetOriginalValues(), GetEstimatedValues(solution)); 120 121 chart.ChartAreas[0].AxisX.Maximum = Math.Ceiling(residuals.Max()); 120 121 122 var maxValue = residuals.Max(); 123 if (maxValue >= chart.ChartAreas[0].AxisX.Maximum) { 124 double scale = Math.Pow(10, Math.Floor(Math.Log10(maxValue))); 125 var maximum = scale * (1 + (int)(maxValue / scale)); 126 chart.ChartAreas[0].AxisX.Maximum = maximum; 127 } 122 128 chart.ChartAreas[0].CursorX.Interval = residuals.Min() / 100; 123 129
Note: See TracChangeset
for help on using the changeset viewer.